public static interface AdvancementEvent.Grant extends AdvancementEvent, MessageChannelEvent
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
.
AdvancementEvent.Grant, AdvancementEvent.Revoke
MessageChannelEvent.Chat
MessageEvent.DefaultBodyApplier, MessageEvent.DefaultHeaderApplier, MessageEvent.MessageFormatter
PARAM_MESSAGE_BODY, PARAM_MESSAGE_FOOTER, PARAM_MESSAGE_HEADER
Modifier and Type | Method and Description |
---|---|
Instant |
getTime()
Gets the
Instant at which the Advancement
was unlocked. |
getAdvancement
getTargetEntity
getCause, getContext, getSource
getChannel, getOriginalChannel, setChannel
clearMessage, getFormatter, getMessage, getOriginalMessage, isMessageCancelled, setMessage, setMessage, setMessage, setMessageCancelled
Instant getTime()
Instant
at which the Advancement
was unlocked.