Interface CriterionEvent.Trigger<C extends FilteredTriggerConfiguration>
-
- All Superinterfaces:
AdvancementEvent
,CriterionEvent
,Event
,GenericEvent<C>
- Enclosing interface:
- CriterionEvent
public static interface CriterionEvent.Trigger<C extends FilteredTriggerConfiguration> extends CriterionEvent, GenericEvent<C>
Is called when aFilteredTrigger
is being processed for a specificCriterion
.
-
-
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 boolean
result()
Gets the result of the trigger event.void
setResult(boolean result)
Sets the result of the trigger event.FilteredTrigger<C>
trigger()
Gets theFilteredTrigger
that is being processed.-
Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, player
-
Methods inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
criterion
-
Methods inherited from interface org.spongepowered.api.event.GenericEvent
paramType
-
-
-
-
Method Detail
-
trigger
FilteredTrigger<C> trigger()
Gets theFilteredTrigger
that is being processed.- Returns:
- The trigger
-
result
boolean result()
Gets the result of the trigger event.- Returns:
- The result
-
setResult
void setResult(boolean result)
Sets the result of the trigger event.- Parameters:
result
- The result
-
-