Interface CriterionEvent.Score.Change
- All Superinterfaces:
AdvancementEvent,Cancellable,CriterionEvent,CriterionEvent.Score,Event
- All Known Subinterfaces:
CriterionEvent.Score.Grant,CriterionEvent.Score.Revoke
- Enclosing interface:
CriterionEvent.Score
Is called when the score of a
ScoreAdvancementCriterion
changes.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
CriterionEvent.Score, CriterionEvent.Trigger<C extends FilteredTriggerConfiguration>Nested classes/interfaces inherited from interface org.spongepowered.api.event.advancement.CriterionEvent.Score
CriterionEvent.Score.Change, CriterionEvent.Score.Grant, CriterionEvent.Score.Revoke -
Method Summary
Modifier and TypeMethodDescriptionintnewScore()Gets the new score.intGets the previous score.Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, advancementKey, playerMethods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.advancement.CriterionEvent.Score
criterion
-
Method Details
-
previousScore
int previousScore()Gets the previous score.- Returns:
- The previous score
-
newScore
int newScore()Gets the new score.- Returns:
- The new score
-