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:
-
executeOnCancel
Defaults to false, calling sets to true.- See Also:
-
handle
This is a required parameter.- See Also:
-
build
Builds an EventHandler.- Throws:
NullPointerException- if a required parameter (handle(Consumer)) is missing
-