PlayerAdvancements
Link to playeradvancements
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.advancement.PlayerAdvancements;
Methods
Link to methods
Name: award
Return Type: boolean
ZenScript CopyPlayerAdvancements.award(advancement as AdvancementHolder, criteria as string) as boolean
Parameter | Type |
---|---|
Parameter advancement | Type AdvancementHolder |
Parameter criteria | Type string |
Name: flushDirty
ZenScript CopyPlayerAdvancements.flushDirty(player as ServerPlayer)
Parameter | Type |
---|---|
Parameter player | Type ServerPlayer |
Name: getOrStartProgress
Return Type: AdvancementProgress
ZenScript CopyPlayerAdvancements.getOrStartProgress(advancement as AdvancementHolder) as AdvancementProgress
Parameter | Type |
---|---|
Parameter advancement | Type AdvancementHolder |
Name: revoke
Return Type: boolean
ZenScript CopyPlayerAdvancements.revoke(advancement as AdvancementHolder, criteria as string) as boolean
Parameter | Type |
---|---|
Parameter advancement | Type AdvancementHolder |
Parameter criteria | Type string |