Interface CriterionEvent.Grant
- All Superinterfaces:
AdvancementEvent
,Cancellable
,CriterionEvent
,Event
- All Known Subinterfaces:
CriterionEvent.Score.Grant
- Enclosing interface:
- CriterionEvent
Is called when a
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.
-
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
Modifier and TypeMethodDescriptiontime()
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 Details
-
time
Instant time()Gets theInstant
at which theAdvancementCriterion
was unlocked.- Returns:
- The time instant
-