Advancement
Link to advancement
导入类
Link to 导入类
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;
使用方式
Link to 使用方式
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();
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();
名称 | 类型 | 可获得 | 可设置 |
---|---|---|---|
名称 chatComponent | 类型 Component? | 可获得 true | 可设置 false |
名称 children | 类型 stdlib.Iterable<T>? | 可获得 true | 可设置 false |
名称 criteria | 类型 V[K]? | 可获得 true | 可设置 false |
名称 display | 类型 DisplayInfo? | 可获得 true | 可设置 false |
名称 id | 类型 ResourceLocation? | 可获得 true | 可设置 false |
名称 maxCriteriaRequired | 类型 int | 可获得 true | 可设置 false |
名称 parent | 类型 Advancement? | 可获得 true | 可设置 false |
名称 requirements | 类型 string?[][] | 可获得 true | 可设置 false |
名称 rewards | 类型 AdvancementRewards? | 可获得 true | 可设置 false |