Package net.dv8tion.jda.api.hooks
package net.dv8tion.jda.api.hooks
EventManager and EventListener implementations and interfaces.
Every JDA instance has an EventManager
implementation
that deals with the handling and forwarding of Events
.
The default manager is the InterfacedEventManager
which uses the EventListener
to listen for events.
The ListenerAdapter
is an implementation which provides
methods for each event of net.dv8tion.jda.api.events
The AnnotatedEventManager
can forward events directly to methods that have the SubscribeEvent
annotation.
Note: All of the standard EventManager implementations are single-threaded
-
ClassDescriptionImplementation for
IEventManager
which checks forSubscribeEvent
annotations on both static and member methods.JDA pushesGenericEvents
to the registered EventListeners.An interface for JDA's EventManager system.AnIEventManager
implementation that uses theEventListener
interface for event listeners.An abstract implementation ofEventListener
which dividesEvents
for you.Annotation used by theAnnotatedEventManager
this is only picked up if the event manager implementation has been set to use theAnnotatedEventManager
viaJDABuilder.setEventManager(IEventManager)
Interceptor used to handle critical voice dispatches.Wrapper for a Voice Server UpdateWrapper for a Voice State UpdateAbstraction for all relevant voice updates