public interface EventBus
LuckPerms events are posted to any listeners registered with the bus.
| Modifier and Type | Method and Description |
|---|---|
<T extends LuckPermsEvent> |
getHandlers(Class<T> eventClass)
Gets a set of all registered handlers for a given event.
|
<T extends LuckPermsEvent> |
subscribe(Class<T> eventClass,
Consumer<T> handler)
Subscribes to an event.
|
@Nonnull <T extends LuckPermsEvent> EventHandler<T> subscribe(@Nonnull Class<T> eventClass, @Nonnull Consumer<T> handler)
T - the event classeventClass - the event classhandler - the event handler@Nonnull <T extends LuckPermsEvent> Set<EventHandler<T>> getHandlers(@Nonnull Class<T> eventClass)
T - the event classeventClass - the event to find handlers forCopyright © 2018. All rights reserved.