Package net.luckperms.api.event
Interface EventSubscription<T extends LuckPermsEvent>
- Type Parameters:
T- the event class
- All Superinterfaces:
AutoCloseable
Represents a subscription to a
LuckPermsEvent.-
Method Details
-
getEventClass
Gets the class this handler is listening to- Returns:
- the event class
-
isActive
boolean isActive()Returns true if this handler is active- Returns:
- true if this handler is still active
-
close
void close()Unregisters this handler from the event bus.- Specified by:
closein interfaceAutoCloseable
-
getHandler
Gets the event consumer responsible for handling the event- Returns:
- the event consumer
-