Interface AdvancementEvent.Grant
- All Superinterfaces:
AdvancementEvent
,AudienceMessageEvent
,Event
,MessageCancellable
,MessageEvent
- Enclosing interface:
AdvancementEvent
public static interface AdvancementEvent.Grant
extends AdvancementEvent, AudienceMessageEvent, MessageCancellable
Is called when a
Advancement
is granted/unlocked.
This event cannot be canceled, you have to cancel the
CriterionEvent.Grant
s of the underlying CriterionEvent
s
to prevent unlocking the Advancement
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
AdvancementEvent.Grant, AdvancementEvent.Revoke
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, advancementKey, player
Methods inherited from interface org.spongepowered.api.event.message.AudienceMessageEvent
audience, filterAudience, originalAudience, setAudience
Methods inherited from interface org.spongepowered.api.event.message.MessageCancellable
isMessageCancelled, setMessageCancelled
Methods inherited from interface org.spongepowered.api.event.message.MessageEvent
message, originalMessage, setMessage
-
Method Details
-
time
Instant time()Gets theInstant
at which theAdvancement
was unlocked.- Returns:
- The time instant
-