[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user