AdvancementProgress

Link to advancementprogress

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

Implemented Interfaces

Link to implemented-interfaces

AdvancementProgress implements the following interfaces. That means all methods defined in these interfaces are also available in AdvancementProgress

Name: getCriterion

Return Type: CriterionProgress?

ZenScript
Copy
AdvancementProgress.getCriterion(criterionName as string) as CriterionProgress?
ParameterType
Parameter
criterionName
Type
string

Name: grantProgress

Return Type: boolean

ZenScript
Copy
AdvancementProgress.grantProgress(criterionName as string) as boolean
ParameterType
Parameter
criterionName
Type
string

Name: revokeProgress

Return Type: boolean

ZenScript
Copy
AdvancementProgress.revokeProgress(criterionName as string) as boolean
ParameterType
Parameter
criterionName
Type
string
NameTypeHas GetterHas Setter
Name
completedCriteria
Type
stdlib.List<string>
Has Getter
true
Has Setter
false
Name
done
Type
boolean
Has Getter
true
Has Setter
false
Name
hasProgress
Type
boolean
Has Getter
true
Has Setter
false
Name
percent
Type
float
Has Getter
true
Has Setter
false
Name
progressText
Type
Component?
Has Getter
true
Has Setter
false
Name
remainingCriteria
Type
stdlib.List<string>
Has Getter
true
Has Setter
false