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>
A base event for
Advancement
related events.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Is called when aAdvancement
is granted/unlocked.static interface
Is called when aAdvancementCriterion
is revoked. -
Method Summary
Modifier and TypeMethodDescriptionGets theAdvancement
that is being targeted.Gets theAdvancement
that is being targeted.player()
Gets theplayer
.
-
Method Details
-
player
ServerPlayer player()Gets theplayer
.- Returns:
- The player
-
advancement
Advancement advancement()Gets theAdvancement
that is being targeted.- Returns:
- The advancement
-
advancementKey
ResourceKey advancementKey()Gets theAdvancement
that is being targeted.- Returns:
- The advancement
-