cleanup: remove unnecessary interface modifiers
This commit is contained in:
@@ -24,8 +24,8 @@ package client;
|
||||
* @author Ronan
|
||||
*/
|
||||
public interface AbstractCharacterListener {
|
||||
public void onHpChanged(int oldHp);
|
||||
public void onHpmpPoolUpdate();
|
||||
public void onStatUpdate();
|
||||
public void onAnnounceStatPoolUpdate();
|
||||
void onHpChanged(int oldHp);
|
||||
void onHpmpPoolUpdate();
|
||||
void onStatUpdate();
|
||||
void onAnnounceStatPoolUpdate();
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ package net.server.audit.locks;
|
||||
*/
|
||||
public interface MonitoredReadLock {
|
||||
|
||||
public void lock();
|
||||
void lock();
|
||||
|
||||
public void unlock();
|
||||
void unlock();
|
||||
|
||||
public boolean tryLock();
|
||||
boolean tryLock();
|
||||
|
||||
public MonitoredReadLock dispose();
|
||||
MonitoredReadLock dispose();
|
||||
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ package net.server.audit.locks;
|
||||
*/
|
||||
public interface MonitoredReentrantLock {
|
||||
|
||||
public void lock();
|
||||
void lock();
|
||||
|
||||
public void unlock();
|
||||
void unlock();
|
||||
|
||||
public boolean tryLock();
|
||||
boolean tryLock();
|
||||
|
||||
public MonitoredReentrantLock dispose();
|
||||
MonitoredReentrantLock dispose();
|
||||
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ package net.server.audit.locks;
|
||||
*/
|
||||
public interface MonitoredWriteLock {
|
||||
|
||||
public void lock();
|
||||
void lock();
|
||||
|
||||
public void unlock();
|
||||
void unlock();
|
||||
|
||||
public boolean tryLock();
|
||||
boolean tryLock();
|
||||
|
||||
public MonitoredWriteLock dispose();
|
||||
MonitoredWriteLock dispose();
|
||||
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
package net.server.coordinator.matchchecker;
|
||||
|
||||
import client.MapleCharacter;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
@@ -27,8 +28,8 @@ import java.util.Set;
|
||||
* @author Ronan
|
||||
*/
|
||||
public interface AbstractMatchCheckerListener {
|
||||
public void onMatchCreated(MapleCharacter leader, Set<MapleCharacter> nonLeaderMatchPlayers, String message);
|
||||
public void onMatchAccepted(int leaderid, Set<MapleCharacter> matchPlayers, String message);
|
||||
public void onMatchDeclined(int leaderid, Set<MapleCharacter> matchPlayers, String message);
|
||||
public void onMatchDismissed(int leaderid, Set<MapleCharacter> matchPlayers, String message);
|
||||
void onMatchCreated(MapleCharacter leader, Set<MapleCharacter> nonLeaderMatchPlayers, String message);
|
||||
void onMatchAccepted(int leaderid, Set<MapleCharacter> matchPlayers, String message);
|
||||
void onMatchDeclined(int leaderid, Set<MapleCharacter> matchPlayers, String message);
|
||||
void onMatchDismissed(int leaderid, Set<MapleCharacter> matchPlayers, String message);
|
||||
}
|
||||
|
||||
@@ -24,5 +24,5 @@ package net.server.coordinator.matchchecker;
|
||||
* @author Ronan
|
||||
*/
|
||||
public interface MatchCheckerListenerRecipe {
|
||||
public AbstractMatchCheckerListener getListener();
|
||||
AbstractMatchCheckerListener getListener();
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@ import java.util.List;
|
||||
* @author Ronan
|
||||
*/
|
||||
public interface SchedulerListener {
|
||||
public void removedScheduledEntries(List<Object> entries, boolean update);
|
||||
void removedScheduledEntries(List<Object> entries, boolean update);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ package net.server.services;
|
||||
* @author Ronan
|
||||
*/
|
||||
public interface ServiceType <T extends Enum<?>> {
|
||||
public abstract Service createService();
|
||||
public int ordinal();
|
||||
public T[] enumValues();
|
||||
Service createService();
|
||||
int ordinal();
|
||||
T[] enumValues();
|
||||
}
|
||||
|
||||
@@ -21,14 +21,15 @@
|
||||
*/
|
||||
package provider;
|
||||
|
||||
import java.util.List;
|
||||
import provider.wz.MapleDataType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MapleData extends MapleDataEntity, Iterable<MapleData> {
|
||||
@Override
|
||||
public String getName();
|
||||
public MapleDataType getType();
|
||||
public List<MapleData> getChildren();
|
||||
public MapleData getChildByPath(String path);
|
||||
public Object getData();
|
||||
String getName();
|
||||
MapleDataType getType();
|
||||
List<MapleData> getChildren();
|
||||
MapleData getChildByPath(String path);
|
||||
Object getData();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.List;
|
||||
* @author Matze
|
||||
*/
|
||||
public interface MapleDataDirectoryEntry extends MapleDataEntry {
|
||||
public List<MapleDataDirectoryEntry> getSubdirectories();
|
||||
public List<MapleDataFileEntry> getFiles();
|
||||
public MapleDataEntry getEntry(String name);
|
||||
List<MapleDataDirectoryEntry> getSubdirectories();
|
||||
List<MapleDataFileEntry> getFiles();
|
||||
MapleDataEntry getEntry(String name);
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@ package provider;
|
||||
* @author Matze
|
||||
*/
|
||||
public interface MapleDataEntity {
|
||||
public String getName();
|
||||
public MapleDataEntity getParent();
|
||||
String getName();
|
||||
MapleDataEntity getParent();
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ package provider;
|
||||
* @author Matze
|
||||
*/
|
||||
public interface MapleDataEntry extends MapleDataEntity {
|
||||
public String getName();
|
||||
public int getSize();
|
||||
public int getChecksum();
|
||||
public int getOffset();
|
||||
String getName();
|
||||
int getSize();
|
||||
int getChecksum();
|
||||
int getOffset();
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@ package provider;
|
||||
* @author Matze
|
||||
*/
|
||||
public interface MapleDataFileEntry extends MapleDataEntry {
|
||||
public void setOffset(int offset);
|
||||
void setOffset(int offset);
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
package scripting.portal;
|
||||
|
||||
public interface PortalScript {
|
||||
public boolean enter(PortalPlayerInteraction ppi);
|
||||
boolean enter(PortalPlayerInteraction ppi);
|
||||
}
|
||||
@@ -22,10 +22,10 @@
|
||||
package server;
|
||||
|
||||
public interface TimerManagerMBean {
|
||||
public boolean isTerminated();
|
||||
public boolean isShutdown();
|
||||
public long getCompletedTaskCount();
|
||||
public long getActiveCount();
|
||||
public long getTaskCount();
|
||||
public int getQueuedTasks();
|
||||
boolean isTerminated();
|
||||
boolean isShutdown();
|
||||
long getCompletedTaskCount();
|
||||
long getActiveCount();
|
||||
long getTaskCount();
|
||||
int getQueuedTasks();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import client.MapleCharacter;
|
||||
|
||||
public interface MonsterListener {
|
||||
|
||||
public void monsterKilled(int aniTime);
|
||||
public void monsterDamaged(MapleCharacter from, int trueDmg);
|
||||
public void monsterHealed(int trueHeal);
|
||||
void monsterKilled(int aniTime);
|
||||
void monsterDamaged(MapleCharacter from, int trueDmg);
|
||||
void monsterHealed(int trueHeal);
|
||||
}
|
||||
|
||||
@@ -3665,12 +3665,12 @@ public class MapleMap {
|
||||
return retP + retI;
|
||||
}
|
||||
|
||||
private static interface DelayedPacketCreation {
|
||||
private interface DelayedPacketCreation {
|
||||
|
||||
void sendPackets(MapleClient c);
|
||||
}
|
||||
|
||||
private static interface SpawnCondition {
|
||||
private interface SpawnCondition {
|
||||
|
||||
boolean canSpawn(MapleCharacter chr);
|
||||
}
|
||||
|
||||
@@ -21,16 +21,17 @@
|
||||
*/
|
||||
package server.maps;
|
||||
|
||||
import java.awt.Point;
|
||||
import client.MapleClient;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public interface MapleMapObject {
|
||||
public int getObjectId();
|
||||
public void setObjectId(int id);
|
||||
public MapleMapObjectType getType();
|
||||
public Point getPosition();
|
||||
public void setPosition(Point position);
|
||||
public void sendSpawnData(MapleClient client);
|
||||
public void sendDestroyData(MapleClient client);
|
||||
public void nullifyPosition();
|
||||
int getObjectId();
|
||||
void setObjectId(int id);
|
||||
MapleMapObjectType getType();
|
||||
Point getPosition();
|
||||
void setPosition(Point position);
|
||||
void sendSpawnData(MapleClient client);
|
||||
void sendDestroyData(MapleClient client);
|
||||
void nullifyPosition();
|
||||
}
|
||||
@@ -21,15 +21,16 @@
|
||||
*/
|
||||
package server.maps;
|
||||
|
||||
import java.awt.Point;
|
||||
import client.MapleClient;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public interface MaplePortal {
|
||||
public final int TELEPORT_PORTAL = 1;
|
||||
public final int MAP_PORTAL = 2;
|
||||
public final int DOOR_PORTAL = 6;
|
||||
public static boolean OPEN = true;
|
||||
public static boolean CLOSED = false;
|
||||
int TELEPORT_PORTAL = 1;
|
||||
int MAP_PORTAL = 2;
|
||||
int DOOR_PORTAL = 6;
|
||||
boolean OPEN = true;
|
||||
boolean CLOSED = false;
|
||||
int getType();
|
||||
int getId();
|
||||
Point getPosition();
|
||||
|
||||
@@ -38,44 +38,44 @@ public interface LittleEndianWriter {
|
||||
*
|
||||
* @param b The bytes to write.
|
||||
*/
|
||||
public void write(byte[] b);
|
||||
void write(byte[] b);
|
||||
|
||||
/**
|
||||
* Write a byte to the sequence.
|
||||
*
|
||||
* @param b The byte to write.
|
||||
*/
|
||||
public void write(byte b);
|
||||
void write(byte b);
|
||||
|
||||
/**
|
||||
* Write a byte in integer form to the sequence.
|
||||
*
|
||||
* @param b The byte as an <code>Integer</code> to write.
|
||||
*/
|
||||
public void write(int b);
|
||||
void write(int b);
|
||||
|
||||
public void skip(int b);
|
||||
void skip(int b);
|
||||
|
||||
/**
|
||||
* Writes an integer to the sequence.
|
||||
*
|
||||
* @param i The integer to write.
|
||||
*/
|
||||
public void writeInt(int i);
|
||||
void writeInt(int i);
|
||||
|
||||
/**
|
||||
* Write a short integer to the sequence.
|
||||
*
|
||||
* @param s The short integer to write.
|
||||
*/
|
||||
public void writeShort(int s);
|
||||
void writeShort(int s);
|
||||
|
||||
/**
|
||||
* Write a long integer to the sequence.
|
||||
*
|
||||
* @param l The long integer to write.
|
||||
*/
|
||||
public void writeLong(long l);
|
||||
void writeLong(long l);
|
||||
|
||||
/**
|
||||
* Writes an ASCII string the the sequence.
|
||||
|
||||
Reference in New Issue
Block a user