1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-16 03:52:50 +00:00

Several changes

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-18 02:18:37 -03:00
parent cd41122035
commit 4c27add4ef
162 changed files with 492 additions and 579 deletions

View File

@@ -16,24 +16,15 @@
*/
package com.l2jserver.model.world.clan;
import com.l2jserver.service.game.world.event.WorldEvent;
import com.l2jserver.service.game.world.event.WorldListener;
import com.l2jserver.service.game.world.event.FilteredWorldListener;
/**
* This listener will filter to only dispatch {@link ClanEvent} events.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public abstract class ClanListener implements WorldListener {
@Override
public boolean dispatch(WorldEvent e) {
if (!(e instanceof ClanEvent))
return false;
return dispatch((ClanEvent) e);
public abstract class ClanListener extends FilteredWorldListener<ClanEvent> {
public ClanListener() {
super(ClanEvent.class);
}
/**
* @see WorldListener#dispatch(WorldEvent)
*/
protected abstract boolean dispatch(ClanEvent e);
}