Interface ScoreCriterionProgress
- All Superinterfaces:
- CriterionProgress,- Progressable
Represents the progress of a 
ScoreAdvancementCriterion.- 
Method SummaryModifier 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 org.spongepowered.api.advancement.Progressableachieved, get, grant, revoke
- 
Method Details- 
criterionScoreAdvancementCriterion criterion()Description copied from interface:CriterionProgressGets theAdvancementCriterion.- Specified by:
- criterionin interface- CriterionProgress
- Returns:
- The criterion
 
- 
goaldefault int goal()Gets the goal value.- Returns:
- The goal value
 
- 
scoreint score()Gets the score value.- Returns:
- The score value
 
- 
setAdds the target score value, the score cannot exceed the goal value (goal()) or be under zero. The achieved time will be returned if the goal is met.- Parameters:
- score- The score to set
- Returns:
- The achieving time, if achieved
 
- 
addAdds the target score value, the score cannot exceed the goal value (goal()). The achieved time will be returned if the goal is met.- Parameters:
- score- The score to add
- Returns:
- The achieving time, if achieved
 
- 
removeRemoves the target score value, the score cannot go under zero. The achieved time will be returned if the goal is met before.- Parameters:
- score- The score to remove
- Returns:
- The old achieving time, if achieved before
 
 
-