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;

Link to getChatComponent

Name: getChatComponent

Return Type: Component?

ZenScript
Copy
// Advancement.getChatComponent() as Component?

myAdvancement.getChatComponent();

Name: getChildren

Return Type: stdlib.Iterable<T>?

ZenScript
Copy
// Advancement.getChildren() as stdlib.Iterable<T>?

myAdvancement.getChildren();

Name: getCriteria

Return Type: V[K]?

ZenScript
Copy
// Advancement.getCriteria() as V[K]?

myAdvancement.getCriteria();

Name: getDisplay

Return Type: DisplayInfo?

ZenScript
Copy
// Advancement.getDisplay() as DisplayInfo?

myAdvancement.getDisplay();

Name: getId

Return Type: ResourceLocation?

ZenScript
Copy
// Advancement.getId() as ResourceLocation?

myAdvancement.getId();

Link to getMaxCriteriaRequired

Name: getMaxCriteriaRequired

Return Type: int

ZenScript
Copy
// Advancement.getMaxCriteriaRequired() as int

myAdvancement.getMaxCriteriaRequired();

Name: getParent

Return Type: Advancement?

ZenScript
Copy
// Advancement.getParent() as Advancement?

myAdvancement.getParent();

Name: getRequirements

Return Type: string?[][]

ZenScript
Copy
// Advancement.getRequirements() as string?[][]

myAdvancement.getRequirements();

Name: getRewards

Return Type: AdvancementRewards?

ZenScript
Copy
// Advancement.getRewards() as AdvancementRewards?

myAdvancement.getRewards();
이름TypeHas GetterHas Setter
이름
chatComponent
Type
Component?
Has Getter
true
Has Setter
false
이름
children
Type
stdlib.Iterable<T>?
Has Getter
true
Has Setter
false
이름
criteria
Type
V[K]?
Has Getter
true
Has Setter
false
이름
display
Type
DisplayInfo?
Has Getter
true
Has Setter
false
이름
id
Type
ResourceLocation?
Has Getter
true
Has Setter
false
이름
maxCriteriaRequired
Type
int
Has Getter
true
Has Setter
false
이름
parent
Type
Advancement?
Has Getter
true
Has Setter
false
이름
requirements
Type
string?[][]
Has Getter
true
Has Setter
false
이름
rewards
Type
AdvancementRewards?
Has Getter
true
Has Setter
false