diff options
Diffstat (limited to 'src/main/java/ftbsc/geb/api/IEventDispatcher.java')
-rw-r--r-- | src/main/java/ftbsc/geb/api/IEventDispatcher.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/geb/api/IEventDispatcher.java b/src/main/java/ftbsc/geb/api/IEventDispatcher.java index e736706..ef13f0b 100644 --- a/src/main/java/ftbsc/geb/api/IEventDispatcher.java +++ b/src/main/java/ftbsc/geb/api/IEventDispatcher.java @@ -1,6 +1,7 @@ package ftbsc.geb.api; import java.util.Map; +import java.util.Set; /** * The interface that the generated dispatchers will all use. @@ -12,10 +13,10 @@ public interface IEventDispatcher { /** * Calls all listeners for the given event. * @param event the event to call - * @param listeners a map mapping each {@link IListener} class to its instance + * @param listeners a map mapping each {@link IListener} class to its instances * @return the value {@link IBus#handleEvent(IEvent)} will return for this */ - boolean callListeners(IEvent event, Map<Class<? extends IListener>, IListener> listeners); + boolean callListeners(IEvent event, Map<Class<? extends IListener>, Set<IListener>> listeners); /** * @return the {@link Class} representing the event this dispatcher works with |