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
Copy
import crafttweaker.api.advancement.Advancement;

Extending Record

Link to extending-record

Advancement extends Record. That means all methods available in Record are also available in Advancement

NameTypeHas GetterHas Setter
Name
criteria
Type
Criterion[string]
Has Getter
true
Has Setter
false
Name
display
Type
DisplayInfo?
Has Getter
true
Has Setter
false
Name
isRoot
Type
boolean
Has Getter
true
Has Setter
false
Name
name
Type
Component?
Has Getter
true
Has Setter
false
Name
parent
Type
ResourceLocation?
Has Getter
true
Has Setter
false
Name
requirements
Type
AdvancementRequirements
Has Getter
true
Has Setter
false
Name
rewards
Type
AdvancementRewards
Has Getter
true
Has Setter
false
Name
sendsTelemetryEvent
Type
boolean
Has Getter
true
Has Setter
false