Interface ScoreCriterionProgress
- All Superinterfaces:
CriterionProgress, Progressable
Represents the progress of a
ScoreAdvancementCriterion.-
Method Summary
Modifier and TypeMethodDescriptionadd(int score) Adds the target score value, the score cannot exceed the goal value (goal()).Gets theAdvancementCriterion.default intgoal()Gets the goal value.remove(int score) Removes the target score value, the score cannot go under zero.intscore()Gets the score value.set(int score) Adds the target score value, the score cannot exceed the goal value (goal()) or be under zero.Methods inherited from interface Progressable
achieved, get, grant, revoke
-
Method Details
-
criterion
ScoreAdvancementCriterion criterion()Description copied from interface:CriterionProgressGets theAdvancementCriterion.- Specified by:
criterionin interfaceCriterionProgress- Returns:
- The criterion
-
goal
default int goal()Gets the goal value.- Returns:
- The goal value
-
score
int score()Gets the score value.- Returns:
- The score value
-
set
-
add
-
remove
-