Package | Description |
---|---|
com.codelanx.codelanxlib.listener |
Modifier and Type | Method and Description |
---|---|
static <S extends SubListener<? extends org.bukkit.plugin.Plugin>> |
ListenerManager.getListener(Class<S> listener)
Gets a listener by its string name.
|
static <P extends org.bukkit.plugin.Plugin,S extends SubListener<P>> |
ListenerManager.getRegisteringPlugin(Class<S> listener)
Returns the
Plugin relevant to the passed SubListener
class |
static <T extends SubListener<?>> |
ListenerManager.isRegistered(Class<T> listener)
Returns whether or not a listener is registered under the relevant
listener key
|
static <S extends SubListener<?>> |
ListenerManager.registerListener(S listener)
Registers a listener through Bukkit and
ListenerManager |
static <T extends SubListener<?>> |
ListenerManager.registerListeners(T... listeners)
Calls
ListenerManager.registerListener(SubListener) for every
passed listener. |
Modifier and Type | Method and Description |
---|---|
static <T extends SubListener<?>> |
ListenerManager.registerListeners(T... listeners)
Calls
ListenerManager.registerListener(SubListener) for every
passed listener. |
Modifier and Type | Method and Description |
---|---|
static void |
ListenerManager.unregisterListener(Class<? extends SubListener<?>> listener)
Unregisters a specific
SubListener from both CodelanxLib and
Bukkit |
Copyright © 2015. All rights reserved.