Returnable Event Hook
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
public ReturnableEventHook<T, R> ReturnableEventHook<T extends ReturnableEvent<R>, R extends Any>(IEventHandler handlerClass, ReturnableHandler<T, R> handler, Boolean ignoresCondition, Priority priority, Function0<Boolean> condition, Long timeout)
Properties
Functions
Link copied to clipboard
An optional condition that must be met for the handler to be executed.
Link copied to clipboard
The handler function for the event.
Link copied to clipboard
The class of the event handler.
Link copied to clipboard
Whether the condition should be ignored.
Link copied to clipboard
The priority of the event hook.
Link copied to clipboard
An optional timeout for the event hook.