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 Copyimport 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
- Comparable<AdvancementProgress>
Methods
Link to methods
Name: getCriterion
Return Type: CriterionProgress?
ZenScript CopyAdvancementProgress.getCriterion(criterionName as string) as CriterionProgress?
Parameter | Type |
---|---|
Parameter criterionName | Type string |
Name: grantProgress
Return Type: boolean
ZenScript CopyAdvancementProgress.grantProgress(criterionName as string) as boolean
Parameter | Type |
---|---|
Parameter criterionName | Type string |
Name: revokeProgress
Return Type: boolean
ZenScript CopyAdvancementProgress.revokeProgress(criterionName as string) as boolean
Parameter | Type |
---|---|
Parameter criterionName | Type string |
Properties
Link to properties
Name | Type | Has Getter | Has 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 string? | Has Getter true | Has Setter false |
Name remainingCriteria | Type stdlib.List<string> | Has Getter true | Has Setter false |