IEventHandler

public interface IEventHandler

Interface representing an event handler.

Functions

Link copied to clipboard
Returns the list of child event handlers.
Link copied to clipboard
public boolean handleEvents()
Handles events for this handler.
Link copied to clipboard
public final Unit handler<T extends Event>(Function0<Boolean> condition, Boolean ignoresCondition, Priority priority, Long timeout, Function1<T, Unit> handler)

Registers an event handler for a specific event type.

Link copied to clipboard
public abstract void initHandlers()
Please write a handler initialization code.
Link copied to clipboard
Returns the parent event handler.
Link copied to clipboard
public final Unit returnableHandler<T extends ReturnableEvent<R>, R extends Any>(Function0<Boolean> condition, Boolean ignoresCondition, Priority priority, Long timeout, Function1<T, R> returnableHandler)

Registers a returnable event handler for a specific event type.

Link copied to clipboard
public void unregister()
Unregisters this event handler and all its children.