E - the event typeL - the listener typepublic interface MethodEventBus<E,L>
extends net.kyori.event.EventBus<E>
EventBus which supports defining event subscribers as methods in a class.| Modifier and Type | Method and Description |
|---|---|
void |
register(L listener)
Registers all methods determined to be
valid
on the listener to receive events. |
void |
unregister(L listener)
Unregisters all methods on a registered
listener. |