T - the event classpublic interface EventSubscription<T extends LuckPermsEvent> extends AutoCloseable
LuckPermsEvent.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Unregisters this handler from the event bus.
|
@NonNull Class<T> |
getEventClass()
Gets the class this handler is listening to
|
@NonNull Consumer<? super T> |
getHandler()
Gets the event consumer responsible for handling the event
|
boolean |
isActive()
Returns true if this handler is active
|
@NonNull Class<T> getEventClass()
boolean isActive()
void close()
close in interface AutoCloseable