RegisteredListener Class
Introduction
The RegisteredListener<T> class is a handle to a listener registered through the EventListenerRepository. Keep the handle if the listener needs to be unregistered later.
Getters
getUuid
public UUID getUuid();
Returns:
A random UUID uniquely identifying this registration.
getEventClass
public Class<T> getEventClass();
Returns:
The event class the listener was registered for.
getConsumer
public Consumer<? super T> getConsumer();
Returns:
The consumer that is invoked when the event fires.
getListenerPriority
public ListenerPriority getListenerPriority();
Returns:
The ListenerPriority the listener was registered with.
isIgnoreCancelled
public boolean isIgnoreCancelled();
Returns:
true if the listener is skipped for events that were already cancelled.