T - the event classpublic interface EventHandler<T extends LuckPermsEvent> extends AutoCloseable
LuckPermsEvent.| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
int |
getCallCount()
Gets the number of times this handler has been called
|
@NonNull Consumer<? super T> |
getConsumer()
Gets the event consumer responsible for handling the event
|
@NonNull Class<T> |
getEventClass()
Gets the class this handler is listening to
|
boolean |
isActive()
Returns true if this handler is active
|
boolean |
unregister()
Unregisters this handler from the event bus
|
@NonNull Class<T> getEventClass()
boolean isActive()
boolean unregister()
@NonNull Consumer<? super T> getConsumer()
int getCallCount()
default void close()
close in interface AutoCloseable