public static interface CriterionEvent.Grant extends CriterionEvent, Cancellable
AdvancementCriterion
is granted/unlocked.
The Cause
in vanilla minecraft may contain the CriterionEvent.Trigger
that caused this event to happen, other methods to trigger the event
are through commands or the api.
CriterionEvent.Grant, CriterionEvent.Revoke, CriterionEvent.Score, CriterionEvent.Trigger<C extends FilteredTriggerConfiguration>
Modifier and Type | Method and Description |
---|---|
Instant |
getTime()
Gets the
Instant at which the AdvancementCriterion
was unlocked. |
getCriterion
getAdvancement
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
Instant getTime()
Instant
at which the AdvancementCriterion
was unlocked.