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 theInstantat which theAdvancementCriterionwas unlocked.Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, advancementKey, playerMethods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
criterion
-
Method Details
-
time
Instant time()Gets theInstantat which theAdvancementCriterionwas unlocked.- Returns:
- The time instant
-