AdvancementProgress

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.AdvancementProgress;

Implements

Undocumented Interfaces

Comparable<AdvancementProgress>

Members

Getter
script.zs
// AdvancementProgress.completedCriteria as List<string>
myAdvancementProgress.completedCriteria

Return Type: List<string>

Getter
script.zs
// AdvancementProgress.done as bool
myAdvancementProgress.done

Return Type: bool

getCriterion(criterionName as string) as CriterionProgress
script.zs
// AdvancementProgress.getCriterion(criterionName as string) as CriterionProgress;
myAdvancementProgress.getCriterion(myString);

Parameters:

criterionName Type: string

Return Type: CriterionProgress

grantProgress(criterionName as string) as bool
script.zs
// AdvancementProgress.grantProgress(criterionName as string) as bool;
myAdvancementProgress.grantProgress(myString);

Parameters:

criterionName Type: string

Return Type: bool

Getter
script.zs
// AdvancementProgress.hasProgress as bool
myAdvancementProgress.hasProgress

Return Type: bool

Getter
script.zs
// AdvancementProgress.percent as float
myAdvancementProgress.percent

Return Type: float

Getter
script.zs
// AdvancementProgress.progressText as string
myAdvancementProgress.progressText

Return Type: string

Getter
script.zs
// AdvancementProgress.remainingCriteria as List<string>
myAdvancementProgress.remainingCriteria

Return Type: List<string>

revokeProgress(criterionName as string) as bool
script.zs
// AdvancementProgress.revokeProgress(criterionName as string) as bool;
myAdvancementProgress.revokeProgress(myString);

Parameters:

criterionName Type: string

Return Type: bool