|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.HandlerList
public class HandlerList
A list of event handlers, stored per-event. Based on lahwran's fevents.
Constructor Summary | |
---|---|
HandlerList()
Create a new handler list and initialize using EventPriority The HandlerList is then added to meta-list for use in bakeAll() |
Method Summary | |
---|---|
void |
bake()
Bake HashMap and ArrayLists to 2d array - does nothing if not necessary |
static void |
bakeAll()
Bake all handler lists. |
static ArrayList<HandlerList> |
getHandlerLists()
Get a list of all handler lists for every event type |
RegisteredListener[] |
getRegisteredListeners()
Get the baked registered listeners associated with this handler list |
static ArrayList<RegisteredListener> |
getRegisteredListeners(Plugin plugin)
Get a specific plugin's registered listeners associated with this handler list |
void |
register(RegisteredListener listener)
Register a new listener in this handler list |
void |
registerAll(Collection<RegisteredListener> listeners)
Register a collection of new listeners in this handler list |
void |
unregister(Listener listener)
Remove a specific listener from this handler |
void |
unregister(Plugin plugin)
Remove a specific plugin's listeners from this handler |
void |
unregister(RegisteredListener listener)
Remove a listener from a specific order slot |
static void |
unregisterAll()
Unregister all listeners from all handler lists. |
static void |
unregisterAll(Listener listener)
Unregister a specific listener from all handler lists. |
static void |
unregisterAll(Plugin plugin)
Unregister a specific plugin's listeners from all handler lists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlerList()
Method Detail |
---|
public static void bakeAll()
public static void unregisterAll()
public static void unregisterAll(Plugin plugin)
plugin
- plugin to unregisterpublic static void unregisterAll(Listener listener)
listener
- listener to unregisterpublic void register(RegisteredListener listener)
listener
- listener to registerpublic void registerAll(Collection<RegisteredListener> listeners)
listeners
- listeners to registerpublic void unregister(RegisteredListener listener)
listener
- listener to removepublic void unregister(Plugin plugin)
plugin
- plugin to removepublic void unregister(Listener listener)
listener
- listener to removepublic void bake()
public RegisteredListener[] getRegisteredListeners()
public static ArrayList<RegisteredListener> getRegisteredListeners(Plugin plugin)
plugin
- the plugin to get the listeners of
public static ArrayList<HandlerList> getHandlerLists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |