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 Advancement, criteria as string) as boolean
Parameter | Type |
---|---|
Parameter advancement | Type Advancement |
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 Advancement) as AdvancementProgress
Parameter | Type |
---|---|
Parameter advancement | Type Advancement |
Name: revoke
Return Type: boolean
ZenScript CopyPlayerAdvancements.revoke(advancement as Advancement, criteria as string) as boolean
Parameter | Type |
---|---|
Parameter advancement | Type Advancement |
Parameter criteria | Type string |