Handler Util
Functions
Link copied to clipboard
open fun <T : Event?> handler(@NotNull instance: IEventHandler, eventType: Class<T>, handler: Handler<T>)
Registers a handler for events of type T with default settings.
open fun <T : Event?> handler(@NotNull instance: IEventHandler, eventType: Class<T>, condition: Supplier<Boolean>, ignoresCondition: Boolean, priority: Priority, handler: Handler<T>, timeout: Long)
Registers a handler for events of type T.
Link copied to clipboard
open fun <T : ReturnableEvent<R>?, R> returnableHandler(instance: IEventHandler, eventType: Class<T>, handler: ReturnableHandler<T, R>)
Registers a handler for returnable events of type T with default settings.
open fun <T : ReturnableEvent<R>?, R> returnableHandler(@NotNull instance: IEventHandler, eventType: Class<T>, condition: Supplier<Boolean>, ignoresCondition: Boolean, priority: Priority, handler: ReturnableHandler<T, R>, timeout: Long)
Registers a handler for returnable events of type T.