Advancement
Link to advancement
Importare la Classe
Link to importare-la-classe
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.Advancement;
Metodi
Link to metodi
Name: getChatComponent
Return Type: Component
ZenScript Copy// Advancement.getChatComponent() as Component
myAdvancement.getChatComponent();
Name: getChildren
Return Type: stdlib.Iterable<Advancement>
ZenScript Copy// Advancement.getChildren() as stdlib.Iterable<Advancement>
myAdvancement.getChildren();
Name: getCriteria
Return Type: Criterion[string]
ZenScript Copy// Advancement.getCriteria() as Criterion[string]
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();
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: invalid[][]
ZenScript Copy// Advancement.getRequirements() as invalid[][]
myAdvancement.getRequirements();
Name: getRewards
Return Type: AdvancementRewards
ZenScript Copy// Advancement.getRewards() as AdvancementRewards
myAdvancement.getRewards();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome chatComponent | Tipo Component | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome children | Tipo stdlib.Iterable<Advancement> | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome criteria | Tipo Criterion[string] | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome display | Tipo DisplayInfo | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome id | Tipo ResourceLocation | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome maxCriteriaRequired | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome parent | Tipo Advancement | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome requirements | Tipo invalid[][] | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome rewards | Tipo AdvancementRewards | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |