EventListener

Interface for event listeners. Implementations can register event handlers using the on function.

Properties

Link copied to clipboard

Determine whether this listener should handle events or not

Functions

Link copied to clipboard
inline fun <E : Event> EventListener.on(priority: Event.Priority = Event.Priority.MID, noinline block: (E) -> Unit)

Registers an event listener for the specified event class.