Returnable Event Hook
class ReturnableEventHook<T : ReturnableEvent<R>, R>(val handlerClass: IEventHandler, val handler: ReturnableHandler<T, R>, val ignoresCondition: Boolean, val priority: Priority = Priority.NORMAL, val condition: () -> Boolean? = null, val timeout: Long? = null)
Represents a hook for a returnable event.
Parameters
T
The type of event.
R
The type of the result returned by the handler.
Constructors
Link copied to clipboard
constructor(handlerClass: IEventHandler, handler: ReturnableHandler<T, R>, ignoresCondition: Boolean, priority: Priority = Priority.NORMAL, condition: () -> Boolean? = null, timeout: Long? = null)