cleanup: remove unnecessary interface modifiers

This commit is contained in:
P0nk
2021-04-08 07:33:52 +02:00
parent dde52653e5
commit f37d4063fb
20 changed files with 79 additions and 75 deletions

View File

@@ -24,8 +24,8 @@ package client;
* @author Ronan * @author Ronan
*/ */
public interface AbstractCharacterListener { public interface AbstractCharacterListener {
public void onHpChanged(int oldHp); void onHpChanged(int oldHp);
public void onHpmpPoolUpdate(); void onHpmpPoolUpdate();
public void onStatUpdate(); void onStatUpdate();
public void onAnnounceStatPoolUpdate(); void onAnnounceStatPoolUpdate();
} }

View File

@@ -25,12 +25,12 @@ package net.server.audit.locks;
*/ */
public interface MonitoredReadLock { public interface MonitoredReadLock {
public void lock(); void lock();
public void unlock(); void unlock();
public boolean tryLock(); boolean tryLock();
public MonitoredReadLock dispose(); MonitoredReadLock dispose();
} }

View File

@@ -25,12 +25,12 @@ package net.server.audit.locks;
*/ */
public interface MonitoredReentrantLock { public interface MonitoredReentrantLock {
public void lock(); void lock();
public void unlock(); void unlock();
public boolean tryLock(); boolean tryLock();
public MonitoredReentrantLock dispose(); MonitoredReentrantLock dispose();
} }

View File

@@ -25,12 +25,12 @@ package net.server.audit.locks;
*/ */
public interface MonitoredWriteLock { public interface MonitoredWriteLock {
public void lock(); void lock();
public void unlock(); void unlock();
public boolean tryLock(); boolean tryLock();
public MonitoredWriteLock dispose(); MonitoredWriteLock dispose();
} }

View File

@@ -20,6 +20,7 @@
package net.server.coordinator.matchchecker; package net.server.coordinator.matchchecker;
import client.MapleCharacter; import client.MapleCharacter;
import java.util.Set; import java.util.Set;
/** /**
@@ -27,8 +28,8 @@ import java.util.Set;
* @author Ronan * @author Ronan
*/ */
public interface AbstractMatchCheckerListener { public interface AbstractMatchCheckerListener {
public void onMatchCreated(MapleCharacter leader, Set<MapleCharacter> nonLeaderMatchPlayers, String message); void onMatchCreated(MapleCharacter leader, Set<MapleCharacter> nonLeaderMatchPlayers, String message);
public void onMatchAccepted(int leaderid, Set<MapleCharacter> matchPlayers, String message); void onMatchAccepted(int leaderid, Set<MapleCharacter> matchPlayers, String message);
public void onMatchDeclined(int leaderid, Set<MapleCharacter> matchPlayers, String message); void onMatchDeclined(int leaderid, Set<MapleCharacter> matchPlayers, String message);
public void onMatchDismissed(int leaderid, Set<MapleCharacter> matchPlayers, String message); void onMatchDismissed(int leaderid, Set<MapleCharacter> matchPlayers, String message);
} }

View File

@@ -24,5 +24,5 @@ package net.server.coordinator.matchchecker;
* @author Ronan * @author Ronan
*/ */
public interface MatchCheckerListenerRecipe { public interface MatchCheckerListenerRecipe {
public AbstractMatchCheckerListener getListener(); AbstractMatchCheckerListener getListener();
} }

View File

@@ -26,5 +26,5 @@ import java.util.List;
* @author Ronan * @author Ronan
*/ */
public interface SchedulerListener { public interface SchedulerListener {
public void removedScheduledEntries(List<Object> entries, boolean update); void removedScheduledEntries(List<Object> entries, boolean update);
} }

View File

@@ -24,7 +24,7 @@ package net.server.services;
* @author Ronan * @author Ronan
*/ */
public interface ServiceType <T extends Enum<?>> { public interface ServiceType <T extends Enum<?>> {
public abstract Service createService(); Service createService();
public int ordinal(); int ordinal();
public T[] enumValues(); T[] enumValues();
} }

View File

@@ -21,14 +21,15 @@
*/ */
package provider; package provider;
import java.util.List;
import provider.wz.MapleDataType; import provider.wz.MapleDataType;
import java.util.List;
public interface MapleData extends MapleDataEntity, Iterable<MapleData> { public interface MapleData extends MapleDataEntity, Iterable<MapleData> {
@Override @Override
public String getName(); String getName();
public MapleDataType getType(); MapleDataType getType();
public List<MapleData> getChildren(); List<MapleData> getChildren();
public MapleData getChildByPath(String path); MapleData getChildByPath(String path);
public Object getData(); Object getData();
} }

View File

@@ -28,7 +28,7 @@ import java.util.List;
* @author Matze * @author Matze
*/ */
public interface MapleDataDirectoryEntry extends MapleDataEntry { public interface MapleDataDirectoryEntry extends MapleDataEntry {
public List<MapleDataDirectoryEntry> getSubdirectories(); List<MapleDataDirectoryEntry> getSubdirectories();
public List<MapleDataFileEntry> getFiles(); List<MapleDataFileEntry> getFiles();
public MapleDataEntry getEntry(String name); MapleDataEntry getEntry(String name);
} }

View File

@@ -26,6 +26,6 @@ package provider;
* @author Matze * @author Matze
*/ */
public interface MapleDataEntity { public interface MapleDataEntity {
public String getName(); String getName();
public MapleDataEntity getParent(); MapleDataEntity getParent();
} }

View File

@@ -26,8 +26,8 @@ package provider;
* @author Matze * @author Matze
*/ */
public interface MapleDataEntry extends MapleDataEntity { public interface MapleDataEntry extends MapleDataEntity {
public String getName(); String getName();
public int getSize(); int getSize();
public int getChecksum(); int getChecksum();
public int getOffset(); int getOffset();
} }

View File

@@ -26,5 +26,5 @@ package provider;
* @author Matze * @author Matze
*/ */
public interface MapleDataFileEntry extends MapleDataEntry { public interface MapleDataFileEntry extends MapleDataEntry {
public void setOffset(int offset); void setOffset(int offset);
} }

View File

@@ -22,5 +22,5 @@
package scripting.portal; package scripting.portal;
public interface PortalScript { public interface PortalScript {
public boolean enter(PortalPlayerInteraction ppi); boolean enter(PortalPlayerInteraction ppi);
} }

View File

@@ -22,10 +22,10 @@
package server; package server;
public interface TimerManagerMBean { public interface TimerManagerMBean {
public boolean isTerminated(); boolean isTerminated();
public boolean isShutdown(); boolean isShutdown();
public long getCompletedTaskCount(); long getCompletedTaskCount();
public long getActiveCount(); long getActiveCount();
public long getTaskCount(); long getTaskCount();
public int getQueuedTasks(); int getQueuedTasks();
} }

View File

@@ -3,7 +3,7 @@ import client.MapleCharacter;
public interface MonsterListener { public interface MonsterListener {
public void monsterKilled(int aniTime); void monsterKilled(int aniTime);
public void monsterDamaged(MapleCharacter from, int trueDmg); void monsterDamaged(MapleCharacter from, int trueDmg);
public void monsterHealed(int trueHeal); void monsterHealed(int trueHeal);
} }

View File

@@ -3665,12 +3665,12 @@ public class MapleMap {
return retP + retI; return retP + retI;
} }
private static interface DelayedPacketCreation { private interface DelayedPacketCreation {
void sendPackets(MapleClient c); void sendPackets(MapleClient c);
} }
private static interface SpawnCondition { private interface SpawnCondition {
boolean canSpawn(MapleCharacter chr); boolean canSpawn(MapleCharacter chr);
} }

View File

@@ -21,16 +21,17 @@
*/ */
package server.maps; package server.maps;
import java.awt.Point;
import client.MapleClient; import client.MapleClient;
import java.awt.*;
public interface MapleMapObject { public interface MapleMapObject {
public int getObjectId(); int getObjectId();
public void setObjectId(int id); void setObjectId(int id);
public MapleMapObjectType getType(); MapleMapObjectType getType();
public Point getPosition(); Point getPosition();
public void setPosition(Point position); void setPosition(Point position);
public void sendSpawnData(MapleClient client); void sendSpawnData(MapleClient client);
public void sendDestroyData(MapleClient client); void sendDestroyData(MapleClient client);
public void nullifyPosition(); void nullifyPosition();
} }

View File

@@ -21,15 +21,16 @@
*/ */
package server.maps; package server.maps;
import java.awt.Point;
import client.MapleClient; import client.MapleClient;
import java.awt.*;
public interface MaplePortal { public interface MaplePortal {
public final int TELEPORT_PORTAL = 1; int TELEPORT_PORTAL = 1;
public final int MAP_PORTAL = 2; int MAP_PORTAL = 2;
public final int DOOR_PORTAL = 6; int DOOR_PORTAL = 6;
public static boolean OPEN = true; boolean OPEN = true;
public static boolean CLOSED = false; boolean CLOSED = false;
int getType(); int getType();
int getId(); int getId();
Point getPosition(); Point getPosition();

View File

@@ -38,44 +38,44 @@ public interface LittleEndianWriter {
* *
* @param b The bytes to write. * @param b The bytes to write.
*/ */
public void write(byte[] b); void write(byte[] b);
/** /**
* Write a byte to the sequence. * Write a byte to the sequence.
* *
* @param b The byte to write. * @param b The byte to write.
*/ */
public void write(byte b); void write(byte b);
/** /**
* Write a byte in integer form to the sequence. * Write a byte in integer form to the sequence.
* *
* @param b The byte as an <code>Integer</code> to write. * @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. * Writes an integer to the sequence.
* *
* @param i The integer to write. * @param i The integer to write.
*/ */
public void writeInt(int i); void writeInt(int i);
/** /**
* Write a short integer to the sequence. * Write a short integer to the sequence.
* *
* @param s The short integer to write. * @param s The short integer to write.
*/ */
public void writeShort(int s); void writeShort(int s);
/** /**
* Write a long integer to the sequence. * Write a long integer to the sequence.
* *
* @param l The long integer to write. * @param l The long integer to write.
*/ */
public void writeLong(long l); void writeLong(long l);
/** /**
* Writes an ASCII string the the sequence. * Writes an ASCII string the the sequence.