public static interface AdvancementEvent.Grant extends AdvancementEvent, MessageChannelEvent
Advancement is granted/unlocked.
This event cannot be canceled, you have to cancel the
CriterionEvent.Grants of the underlying CriterionEvents
to prevent unlocking the Advancement.
AdvancementEvent.Grant, AdvancementEvent.RevokeMessageChannelEvent.ChatMessageEvent.DefaultBodyApplier, MessageEvent.DefaultHeaderApplier, MessageEvent.MessageFormatterPARAM_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. |
getAdvancementgetTargetEntitygetCause, getContext, getSourcegetChannel, getOriginalChannel, setChannelclearMessage, getFormatter, getMessage, getOriginalMessage, isMessageCancelled, setMessage, setMessage, setMessage, setMessageCancelledInstant getTime()
Instant at which the Advancement
was unlocked.