MultiHandler

annotation class MultiHandler(val priorities: Array<EventPriority> = [EventPriority.NORMAL], val ignoreCancelled: Boolean = false)(source)

A variant of EventHandler that listens to all priorities specified Must be used with MultiListener registered using MultiListener.register unless it's a Rebar block/item/entity interface such as RebarInteractor, those are handled internally using MultiHandler.handleEvent

All methods annotated with this should be formatted as fun methodName(event: Event, priority: EventPriority)

Properties

Link copied to clipboard
Link copied to clipboard