Package alexiil.mc.lib.multipart.api
Interface MultipartEventBus.ListenerInfo<E extends MultipartEvent>
- Enclosing interface:
- MultipartEventBus
public static interface MultipartEventBus.ListenerInfo<E extends MultipartEvent>
Information on a single registered listener.
-
Method Summary
Modifier and Type Method Description Object
getKey()
EventListener<E>
getListener()
Class<E>
getListenerClass()
boolean
isPresent()
void
remove()
Removes this listener.
-
Method Details
-
getKey
Object getKey() -
getListenerClass
-
getListener
EventListener<E> getListener() -
remove
void remove()Removes this listener. -
isPresent
boolean isPresent()- Returns:
- True if this listener is still registered (and so will receive the appropriate events in the future)
or false if it is not. (Note that this info object itself will continue to return false if this is
ever removed, even if the same
getListener()
object is re-registered).
-