Interface CriterionEvent.Grant
-
- All Superinterfaces:
AdvancementEvent
,Cancellable
,CriterionEvent
,Event
- All Known Subinterfaces:
CriterionEvent.Score.Grant
- Enclosing interface:
- CriterionEvent
public static interface CriterionEvent.Grant extends CriterionEvent, Cancellable
Is called when aAdvancementCriterion
is granted/unlocked.The
Cause
in vanilla minecraft may contain theCriterionEvent.Trigger
that caused this event to happen, other methods to trigger the event are through commands or the api.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
CriterionEvent.Grant, CriterionEvent.Revoke, CriterionEvent.Score, CriterionEvent.Trigger<C extends FilteredTriggerConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.Instant
time()
Gets theInstant
at which theAdvancementCriterion
was unlocked.-
Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, player
-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
criterion
-
-
-
-
Method Detail
-
time
java.time.Instant time()
Gets theInstant
at which theAdvancementCriterion
was unlocked.- Returns:
- The time instant
-
-