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 aAdvancementCriterionis granted/unlocked.The
Causein vanilla minecraft may contain theCriterionEvent.Triggerthat 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.Instanttime()Gets theInstantat which theAdvancementCriterionwas 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 theInstantat which theAdvancementCriterionwas unlocked.- Returns:
- The time instant
-
-