Class EventHandler.Builder<T extends Event>
java.lang.Object
net.lucypoulton.squirtgun.platform.event.EventHandler.Builder<T>
- Enclosing class:
- EventHandler<T extends Event>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an EventHandler.Defaults to false, calling sets to true.This is a required parameter.priority(EventPriority priority)Defaults toEventPriority.NORMAL.
-
Method Details
-
priority
Defaults toEventPriority.NORMAL.- See Also:
EventHandler.priority()
-
executeOnCancel
Defaults to false, calling sets to true.- See Also:
EventHandler.executesOnCancel()
-
handle
This is a required parameter.- See Also:
EventHandler.execute(Event)
-
build
Builds an EventHandler.- Throws:
NullPointerException- if a required parameter (handle(Consumer)) is missing
-