[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.

This commit is contained in:
Nathan Adams
2012-01-16 18:25:17 +00:00
committed by Erik Broes
parent 5c8bc62f26
commit e35037ab50
132 changed files with 1691 additions and 225 deletions

View File

@@ -1,6 +1,8 @@
package org.bukkit.plugin;
import java.io.File;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import org.bukkit.event.Event;
@@ -51,8 +53,18 @@ public interface PluginLoader {
* @param listener the object that will handle the eventual call back
* @return The new executor
*/
@Deprecated
public EventExecutor createExecutor(Event.Type type, Listener listener);
/**
* Creates and returns registered listeners for the event classes used in this listener
*
* @param listener The object that will handle the eventual call back
* @param plugin The plugin to use when creating registered listeners
* @return The registered listeners.
*/
public Map<Class<? extends Event>, Set<RegisteredListener>> createRegisteredListeners(Listener listener, Plugin plugin);
/**
* Enables the specified plugin
* <p />