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 g-

Name: getChatComponent

Return Type: Component

ZenScript
Copy
// Advancement.getChatComponent() as Component

myAdvancement.getChatComponent();

Link to g--1

Name: getChildren

Return Type: stdlib.Iterable<Advancement>

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

myAdvancement.getChildren();

Link to g--2

Name: getCriteria

Return Type: Criterion[string]

ZenScript
Copy
// Advancement.getCriteria() as Criterion[string]

myAdvancement.getCriteria();

Link to g--3

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 g--5

Name: getMaxCriteriaRequired

Return Type: int

ZenScript
Copy
// Advancement.getMaxCriteriaRequired() as int

myAdvancement.getMaxCriteriaRequired();

Link to g--6

Name: getParent

Return Type: Advancement

ZenScript
Copy
// Advancement.getParent() as Advancement

myAdvancement.getParent();

Link to g--7

Name: getRequirements

Return Type: invalid[][]

ZenScript
Copy
// Advancement.getRequirements() as invalid[][]

myAdvancement.getRequirements();

Link to g--8

Name: getRewards

Return Type: AdvancementRewards

ZenScript
Copy
// Advancement.getRewards() as AdvancementRewards

myAdvancement.getRewards();
NombreTypeHas GetterHas SetterDescription
Nombre
chatComponent
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
children
Type
stdlib.Iterable<Advancement>
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
criteria
Type
Criterion[string]
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
display - aspecto
Type
DisplayInfo
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
id
Type
ResourceLocation
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
maxCriteriaRequired
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
parent
Type
Advancement
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
requirements
Type
invalid[][]
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
rewards
Type
AdvancementRewards
Has Getter
true
Has Setter
false
Description
No Description Provided