ServerAdvancementManager
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.advancement.ServerAdvancementManager;
Extends
ServerAdvancementManager extends SimpleJsonResourceReloadListener
.
Implements
Undocumented Interfaces
PreparableReloadListener
Operators
[](id as ResourceLocation) as AdvancementHolder
Gets an advancement by its id.script.zs
myServerAdvancementManager[myResourceLocation]
Parameters:
Return Type:
AdvancementHolder
Members
Getter
Gets all advancements.script.zs
myServerAdvancementManager.allAdvancements
Return Type:
Collection<AdvancementHolder>
getAdvancement(id as ResourceLocation) as AdvancementHolder
Gets an advancement by its id.script.zs
Returns: The advancement with the given id, or null if it does not exist.
myServerAdvancementManager.getAdvancement(myResourceLocation);
Parameters:
Return Type:
AdvancementHolder