Package me.shedaniel.architectury.event
Class EventResult
java.lang.Object
me.shedaniel.architectury.event.EventResult
A result from an event, determines if the event should continue to other listeners,
 and determines the outcome of the event.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic EventResultInterrupts the event and stops it from being passed on to other listeners, may or may not set an outcome of the event.static EventResultInterrupts the event and stops it from being passed on to other listeners, and does not set an outcome.static EventResultInterrupts the event and stops it from being passed on to other listeners, and denotes thefalseoutcome.booleanReturns whether this result interrupts the evaluation of other listeners.static EventResultInterrupts the event and stops it from being passed on to other listeners, and denotes thetrueoutcome.static EventResultpass()Passes the event to other listeners, and does not set an outcome of the event.value()Returns the outcome of the result, an passing result will never have an outcome.
- 
Method Details- 
passPasses the event to other listeners, and does not set an outcome of the event.- Returns:
- an event that passes the event to other listeners
 
- 
interruptInterrupts the event and stops it from being passed on to other listeners, may or may not set an outcome of the event.- Parameters:
- value- the outcome of the event, passing- nullhere means the default outcome, which often means falling back to vanilla logic
- Returns:
- an event that interrupts the event
 
- 
interruptTrueInterrupts the event and stops it from being passed on to other listeners, and denotes thetrueoutcome.- Returns:
- an event that interrupts the event
 
- 
interruptDefaultInterrupts the event and stops it from being passed on to other listeners, and does not set an outcome.- Returns:
- an event that interrupts the event
 
- 
interruptFalseInterrupts the event and stops it from being passed on to other listeners, and denotes thefalseoutcome.- Returns:
- an event that interrupts the event
 
- 
interruptsFurtherEvaluationpublic boolean interruptsFurtherEvaluation()Returns whether this result interrupts the evaluation of other listeners.- Returns:
- whether this result interrupts the evaluation of other listeners
 
- 
valueReturns the outcome of the result, an passing result will never have an outcome.- Returns:
- the outcome of the result, returns nullif fallback
 
 
-