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 a
FilteredTrigger
is
being processed for a specific Criterion
.-
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 TypeMethodDescriptionboolean
result()
Gets the result of the trigger event.void
setResult
(boolean result) Sets the result of the trigger event.trigger()
Gets theFilteredTrigger
that is being processed.type()
Gets theFilteredTrigger
that is being processed.Methods inherited from interface org.spongepowered.api.event.advancement.AdvancementEvent
advancement, advancementKey, player
Methods inherited from interface org.spongepowered.api.event.advancement.CriterionEvent
criterion
Methods inherited from interface org.spongepowered.api.event.GenericEvent
paramType
-
Method Details
-
trigger
FilteredTrigger<C> trigger()Gets theFilteredTrigger
that is being processed.- Returns:
- The trigger
-
type
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
-