Package org.geysermc.geyser.event
Class EventResult<T extends GeyserEvent>
java.lang.Object
org.geysermc.geyser.event.EventResult<T>
Provides a chainable result for the triggering of an Event
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEventResult(EventManager manager, T event)
EventResult(EventManager manager, T event, boolean valid)
-
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
boolean
Returns true if the event was cancelledboolean
isValid()
onCancelled(EventResult.Runnable<T> runnable)
onNotCancelled(EventResult.Runnable<T> runnable)
orElse(EventResult.Runnable<T> runnable)
toString()
-
Constructor Details
-
EventResult
-
EventResult
-
-
Method Details