PlayerAdvancements
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.PlayerAdvancements;Members
award(advancement as Advancement, criteria as string) as bool
myPlayerAdvancements.award(myAdvancement, myString);Parameters:
advancement: Advancement Type: Advancement criteria: string Type: string
Return Type:
bool
flushDirty(player as ServerPlayer)
myPlayerAdvancements.flushDirty(myServerPlayer);Parameters:
player: ServerPlayer Type: ServerPlayer getOrStartProgress(advancement as Advancement) as AdvancementProgress
myPlayerAdvancements.getOrStartProgress(myAdvancement);Parameters:
advancement: Advancement Type: Advancement
Return Type:
AdvancementProgress
revoke(advancement as Advancement, criteria as string) as bool
myPlayerAdvancements.revoke(myAdvancement, myString);Parameters:
advancement: Advancement Type: Advancement criteria: string Type: string
Return Type:
bool