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.
Implements
Undocumented Interfaces
Comparable<AdvancementProgress>
Members
Getter
Gets the completed criteria for the advancement
Return Type:
List<string>
Getter
Checks if the advancement is done
Return Type:
bool
getCriterion(criterionName as string) as CriterionProgress
Gets the criterion progress for the advancement
Returns: The criterion progress, or null if it doesn't exist
Parameters:
criterionName: string
Type: string
- The name of the criterion to get progress for
Return Type:
CriterionProgress
grantProgress(criterionName as string) as bool
Grants progress to the advancement
Returns: true if the progress was granted, false otherwise
Parameters:
criterionName: string
Type: string
- The name of the criterion to grant progress to
Return Type:
bool
Getter
Checks if the advancement has progress
Return Type:
bool
Getter
Gets the percentage of the advancement that is complete
Return Type:
float
Getter
Gets the progress text for the advancement
Return Type:
Component
Getter
Gets the remaining criteria for the advancement
Return Type:
List<string>
revokeProgress(criterionName as string) as bool
Revokes progress from the advancement
Returns: true if the progress was revoked, false otherwise
Parameters:
criterionName: string
Type: string
- The name of the criterion to revoke progress from
Return Type:
bool