1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-17 04:22:47 +00:00

Change-Id: Ifa069a09d1b603781a2c9255d89b77cd6f25a359

This commit is contained in:
rogiel
2011-04-28 22:53:11 -03:00
parent 05e8355aaf
commit 54ef3c7fa2
38 changed files with 962 additions and 99 deletions

View File

@@ -1,7 +1,5 @@
package com.l2jserver.model.world.capability;
import java.util.List;
import com.l2jserver.model.world.AbstractObject;
import com.l2jserver.model.world.event.WorldEvent;
import com.l2jserver.model.world.event.WorldListener;
@@ -19,13 +17,27 @@ import com.l2jserver.model.world.event.WorldListener;
*/
public interface Listenable<L extends WorldListener<E>, E extends WorldEvent>
extends WorldCapability {
/**
* Adds a new listener
*
* @param listener
* the listener
*/
void addListener(L listener);
/**
* Removes an listener
*
* @param listener
* the listener
*/
void removeListener(L listener);
List<L> getListeners();
boolean support(Class<? extends E> eventType);
/**
* Don't use this method directly. It is called by the event dispatcher.
*
* @param e
* the event
*/
void dispatch(E e);
}