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 aAdvancement
is granted/unlocked.This event cannot be canceled, you have to cancel the
CriterionEvent.Grant
s of the underlyingCriterionEvent
s to prevent unlocking theAdvancement
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
AdvancementEvent.Grant, AdvancementEvent.Revoke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.Instant
time()
Gets theInstant
at which theAdvancement
was unlocked.-
Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, 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 Detail
-
time
java.time.Instant time()
Gets theInstant
at which theAdvancement
was unlocked.- Returns:
- The time instant
-
-