Interface CriterionEvent.Score
-
- All Superinterfaces:
AdvancementEvent
,CriterionEvent
,Event
- All Known Subinterfaces:
CriterionEvent.Score.Change
,CriterionEvent.Score.Grant
,CriterionEvent.Score.Revoke
- Enclosing interface:
- CriterionEvent
public static interface CriterionEvent.Score extends CriterionEvent
A base event forScoreAdvancementCriterion
related events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CriterionEvent.Score.Change
Is called when the score of aScoreAdvancementCriterion
changes.static interface
CriterionEvent.Score.Grant
Is called when the score of aScoreAdvancementCriterion
changes and results into granting the criterion.static interface
CriterionEvent.Score.Revoke
Is called when the score of aScoreAdvancementCriterion
changes and results into revoking the criterion.-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
CriterionEvent.Score, CriterionEvent.Trigger<C extends FilteredTriggerConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScoreAdvancementCriterion
criterion()
Gets theAdvancementCriterion
that was met.-
Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, player
-
-
-
-
Method Detail
-
criterion
ScoreAdvancementCriterion criterion()
Description copied from interface:CriterionEvent
Gets theAdvancementCriterion
that was met.- Specified by:
criterion
in interfaceCriterionEvent
- Returns:
- The criterion
-
-