Interface CriterionEvent
-
- All Superinterfaces:
AdvancementEvent
,Event
- All Known Subinterfaces:
CriterionEvent.Grant
,CriterionEvent.Revoke
,CriterionEvent.Score
,CriterionEvent.Score.Change
,CriterionEvent.Score.Grant
,CriterionEvent.Score.Revoke
,CriterionEvent.Trigger<C>
public interface CriterionEvent extends AdvancementEvent
A base event forAdvancementCriterion
related events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CriterionEvent.Grant
Is called when aAdvancementCriterion
is granted/unlocked.static interface
CriterionEvent.Revoke
Is called when aAdvancementCriterion
is revoked.static interface
CriterionEvent.Score
A base event forScoreAdvancementCriterion
related events.static interface
CriterionEvent.Trigger<C extends FilteredTriggerConfiguration>
Is called when aFilteredTrigger
is being processed for a specificCriterion
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdvancementCriterion
criterion()
Gets theAdvancementCriterion
that was met.-
Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, player
-
-
-
-
Method Detail
-
criterion
AdvancementCriterion criterion()
Gets theAdvancementCriterion
that was met.- Returns:
- The criterion
-
-