diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-16 18:25:17 +0000 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-17 19:46:22 +0100 |
commit | 86f33b82c90eaaabb8def515462e7e6100d052ab (patch) | |
tree | 5f8d78c6902121137839d255df67da9e98953676 /src/main/java/org/bukkit/plugin/PluginLoader.java | |
parent | 64a8e061026a04649dc71950b29a7fbd7eeac972 (diff) | |
download | bukkit-86f33b82c90eaaabb8def515462e7e6100d052ab.tar bukkit-86f33b82c90eaaabb8def515462e7e6100d052ab.tar.gz bukkit-86f33b82c90eaaabb8def515462e7e6100d052ab.tar.lz bukkit-86f33b82c90eaaabb8def515462e7e6100d052ab.tar.xz bukkit-86f33b82c90eaaabb8def515462e7e6100d052ab.zip |
[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.
Diffstat (limited to 'src/main/java/org/bukkit/plugin/PluginLoader.java')
-rw-r--r-- | src/main/java/org/bukkit/plugin/PluginLoader.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/plugin/PluginLoader.java b/src/main/java/org/bukkit/plugin/PluginLoader.java index 07b50e25..bc4e849f 100644 --- a/src/main/java/org/bukkit/plugin/PluginLoader.java +++ b/src/main/java/org/bukkit/plugin/PluginLoader.java @@ -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,9 +53,19 @@ 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 /> * Attempting to enable a plugin that is already enabled will have no effect |