Interface AdvancementEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
AdvancementEvent.Grant
,AdvancementEvent.Revoke
,CriterionEvent
,CriterionEvent.Grant
,CriterionEvent.Revoke
,CriterionEvent.Score
,CriterionEvent.Score.Change
,CriterionEvent.Score.Grant
,CriterionEvent.Score.Revoke
,CriterionEvent.Trigger<C>
public interface AdvancementEvent extends Event
A base event forAdvancement
related events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AdvancementEvent.Grant
Is called when aAdvancement
is granted/unlocked.static interface
AdvancementEvent.Revoke
Is called when aAdvancementCriterion
is revoked.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Advancement
advancement()
Gets theAdvancement
that is being targeted.ServerPlayer
player()
Gets theplayer
.
-
-
-
Method Detail
-
player
ServerPlayer player()
Gets theplayer
.- Returns:
- The player
-
advancement
Advancement advancement()
Gets theAdvancement
that is being targeted.- Returns:
- The advancement
-
-