Advancement

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.advancement.Advancement;

Members

Getter
script.zs
// Advancement.criteria as Criterion<CriterionTriggerInstance>[string]
myAdvancement.criteria

Return Type: Criterion<CriterionTriggerInstance>[string]

Getter
Gets the DisplayInfo for this advancement
script.zs
// Advancement.display as DisplayInfo
myAdvancement.display

Return Type: DisplayInfo

Getter
Checks if this is a root advancement
script.zs
// Advancement.isRoot as bool
myAdvancement.isRoot

Return Type: bool

Getter
Gets the name of this advancement
script.zs
// Advancement.name as Component
myAdvancement.name

Return Type: Component

Getter
Gets the parent of this advancement.
script.zs
// Advancement.parent as ResourceLocation
myAdvancement.parent

Return Type: ResourceLocation

Getter
script.zs
// Advancement.requirements as AdvancementRequirements
myAdvancement.requirements

Return Type: AdvancementRequirements

Getter
Gets the AdvancementRewards for this advancement
script.zs
// Advancement.rewards as AdvancementRewards
myAdvancement.rewards

Return Type: AdvancementRewards

Getter
Checks if this advancement sends a telemetry event
script.zs
// Advancement.sendsTelemetryEvent as bool
myAdvancement.sendsTelemetryEvent

Return Type: bool