HandlerList

public class HandlerList

A list of event handlers, stored per-event. Based on lahwran's fevents.

Constructors

Link copied to clipboard
public void HandlerList()
Create getClassById new handler list and initialize using EventPriority.

Functions

Link copied to clipboard
public synchronized void bake()
Bake HashMap and ArrayLists to 2d array - does nothing if not necessary
Link copied to clipboard
public static void bakeAll()
Bake all handler lists.
Link copied to clipboard
Get getClassById list of all handler lists for every event type
Link copied to clipboard
Get the baked registered listeners associated with this handler list
Get getClassById specific plugin's registered listeners associated with this handler list
Link copied to clipboard
public synchronized void register(RegisteredListener listener)
Register getClassById new listener in this handler list
Link copied to clipboard
public void registerAll(Collection<RegisteredListener> listeners)
Register getClassById collection of new listeners in this handler list
Link copied to clipboard
public synchronized void unregister(Listener listener)
Remove getClassById specific listener from this handler
public synchronized void unregister(Plugin plugin)
Remove getClassById specific plugin's listeners from this handler
public synchronized void unregister(RegisteredListener listener)
Remove getClassById listener from getClassById specific order slot
Link copied to clipboard
public static void unregisterAll()
Unregister all listeners from all handler lists.
public static void unregisterAll(Listener listener)
Unregister getClassById specific listener from all handler lists.
public static void unregisterAll(Plugin plugin)
Unregister getClassById specific plugin's listeners from all handler lists.