Code style changes.
This commit is contained in:
@@ -52,7 +52,7 @@ public class AdminCommandHandler implements IHandler<IAdminCommandHandler, Strin
|
||||
@Override
|
||||
public IAdminCommandHandler getHandler(String adminCommand)
|
||||
{
|
||||
return _datatable.get((adminCommand.contains(" ") ? adminCommand.substring(0, adminCommand.indexOf(" ")) : adminCommand));
|
||||
return _datatable.get(adminCommand.contains(" ") ? adminCommand.substring(0, adminCommand.indexOf(" ")) : adminCommand);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -63,7 +63,7 @@ public final class EffectHandler implements IHandler<Class<? extends AbstractEff
|
||||
{
|
||||
try
|
||||
{
|
||||
L2ScriptEngineManager.getInstance().executeScript((new File(L2ScriptEngineManager.SCRIPT_FOLDER, "handlers/EffectMasterHandler.java")));
|
||||
L2ScriptEngineManager.getInstance().executeScript(new File(L2ScriptEngineManager.SCRIPT_FOLDER, "handlers/EffectMasterHandler.java"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -24,9 +24,9 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
public interface IActionHandler
|
||||
{
|
||||
public static Logger _log = Logger.getLogger(IActionHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IActionHandler.class.getName());
|
||||
|
||||
public boolean action(L2PcInstance activeChar, L2Object target, boolean interact);
|
||||
boolean action(L2PcInstance activeChar, L2Object target, boolean interact);
|
||||
|
||||
public InstanceType getInstanceType();
|
||||
InstanceType getInstanceType();
|
||||
}
|
||||
@@ -24,9 +24,9 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
public interface IActionShiftHandler
|
||||
{
|
||||
public static Logger _log = Logger.getLogger(IActionShiftHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IActionShiftHandler.class.getName());
|
||||
|
||||
public boolean action(L2PcInstance activeChar, L2Object target, boolean interact);
|
||||
boolean action(L2PcInstance activeChar, L2Object target, boolean interact);
|
||||
|
||||
public InstanceType getInstanceType();
|
||||
InstanceType getInstanceType();
|
||||
}
|
||||
@@ -26,11 +26,11 @@ public interface IAdminCommandHandler
|
||||
* @param command
|
||||
* @return command success
|
||||
*/
|
||||
public boolean useAdminCommand(String command, L2PcInstance activeChar);
|
||||
boolean useAdminCommand(String command, L2PcInstance activeChar);
|
||||
|
||||
/**
|
||||
* this method is called at initialization to register all the item ids automatically
|
||||
* @return all known itemIds
|
||||
*/
|
||||
public String[] getAdminCommandList();
|
||||
String[] getAdminCommandList();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
*/
|
||||
public interface IBypassHandler
|
||||
{
|
||||
public static Logger _log = Logger.getLogger(IBypassHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IBypassHandler.class.getName());
|
||||
|
||||
/**
|
||||
* This is the worker method that is called when someone uses an bypass command.
|
||||
@@ -35,11 +35,11 @@ public interface IBypassHandler
|
||||
* @param bypassOrigin
|
||||
* @return success
|
||||
*/
|
||||
public boolean useBypass(String command, L2PcInstance activeChar, L2Character bypassOrigin);
|
||||
boolean useBypass(String command, L2PcInstance activeChar, L2Character bypassOrigin);
|
||||
|
||||
/**
|
||||
* This method is called at initialization to register all bypasses automatically.
|
||||
* @return all known bypasses
|
||||
*/
|
||||
public String[] getBypassList();
|
||||
String[] getBypassList();
|
||||
}
|
||||
@@ -32,11 +32,11 @@ public interface IChatHandler
|
||||
* @param target
|
||||
* @param text
|
||||
*/
|
||||
public void handleChat(ChatType type, L2PcInstance activeChar, String target, String text);
|
||||
void handleChat(ChatType type, L2PcInstance activeChar, String target, String text);
|
||||
|
||||
/**
|
||||
* Returns a list of all chat types registered to this handler
|
||||
* @return
|
||||
*/
|
||||
public ChatType[] getChatTypeList();
|
||||
ChatType[] getChatTypeList();
|
||||
}
|
||||
@@ -23,11 +23,11 @@ package com.l2jmobius.gameserver.handler;
|
||||
*/
|
||||
public interface IHandler<K, V>
|
||||
{
|
||||
public void registerHandler(K handler);
|
||||
void registerHandler(K handler);
|
||||
|
||||
public void removeHandler(K handler);
|
||||
void removeHandler(K handler);
|
||||
|
||||
public K getHandler(V val);
|
||||
K getHandler(V val);
|
||||
|
||||
public int size();
|
||||
int size();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
*/
|
||||
public interface IItemHandler
|
||||
{
|
||||
public static final Logger _log = Logger.getLogger(IItemHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IItemHandler.class.getName());
|
||||
|
||||
/**
|
||||
* Launch task associated to the item.
|
||||
@@ -35,5 +35,5 @@ public interface IItemHandler
|
||||
* @param forceUse ctrl hold on item use
|
||||
* @return {@code true} if the item all conditions are met and the item is used, {@code false} otherwise.
|
||||
*/
|
||||
public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse);
|
||||
boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
*/
|
||||
public interface IParseBoardHandler
|
||||
{
|
||||
public static final Logger LOG = Logger.getLogger(IParseBoardHandler.class.getName());
|
||||
Logger LOG = Logger.getLogger(IParseBoardHandler.class.getName());
|
||||
|
||||
/**
|
||||
* Parses a community board command.
|
||||
@@ -34,11 +34,11 @@ public interface IParseBoardHandler
|
||||
* @param player the player
|
||||
* @return
|
||||
*/
|
||||
public boolean parseCommunityBoardCommand(String command, L2PcInstance player);
|
||||
boolean parseCommunityBoardCommand(String command, L2PcInstance player);
|
||||
|
||||
/**
|
||||
* Gets the community board commands.
|
||||
* @return the community board commands
|
||||
*/
|
||||
public String[] getCommunityBoardCommands();
|
||||
String[] getCommunityBoardCommands();
|
||||
}
|
||||
|
||||
@@ -26,11 +26,11 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
*/
|
||||
public interface IPunishmentHandler
|
||||
{
|
||||
static final Logger _log = Logger.getLogger(IPunishmentHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IPunishmentHandler.class.getName());
|
||||
|
||||
public void onStart(PunishmentTask task);
|
||||
void onStart(PunishmentTask task);
|
||||
|
||||
public void onEnd(PunishmentTask task);
|
||||
void onEnd(PunishmentTask task);
|
||||
|
||||
public PunishmentType getType();
|
||||
PunishmentType getType();
|
||||
}
|
||||
|
||||
@@ -26,9 +26,9 @@ import com.l2jmobius.gameserver.model.skills.targets.L2TargetType;
|
||||
*/
|
||||
public interface ITargetTypeHandler
|
||||
{
|
||||
static final L2Object[] EMPTY_TARGET_LIST = new L2Object[0];
|
||||
L2Object[] EMPTY_TARGET_LIST = new L2Object[0];
|
||||
|
||||
public L2Object[] getTargetList(Skill skill, L2Character activeChar, boolean onlyFirst, L2Character target);
|
||||
L2Object[] getTargetList(Skill skill, L2Character activeChar, boolean onlyFirst, L2Character target);
|
||||
|
||||
public Enum<L2TargetType> getTargetType();
|
||||
Enum<L2TargetType> getTargetType();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.logging.Logger;
|
||||
*/
|
||||
public interface ITelnetHandler
|
||||
{
|
||||
public static Logger _log = Logger.getLogger(ITelnetHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(ITelnetHandler.class.getName());
|
||||
|
||||
/**
|
||||
* this is the worker method that is called when someone uses an bypass command
|
||||
@@ -35,11 +35,11 @@ public interface ITelnetHandler
|
||||
* @param __uptime
|
||||
* @return success
|
||||
*/
|
||||
public boolean useCommand(String command, PrintWriter _print, Socket _cSocket, int __uptime);
|
||||
boolean useCommand(String command, PrintWriter _print, Socket _cSocket, int __uptime);
|
||||
|
||||
/**
|
||||
* this method is called at initialization to register all bypasses automatically
|
||||
* @return all known bypasses
|
||||
*/
|
||||
public String[] getCommandList();
|
||||
String[] getCommandList();
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
public interface IUserCommandHandler
|
||||
{
|
||||
public static Logger _log = Logger.getLogger(IUserCommandHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IUserCommandHandler.class.getName());
|
||||
|
||||
/**
|
||||
* this is the worker method that is called when someone uses an admin command.
|
||||
@@ -30,11 +30,11 @@ public interface IUserCommandHandler
|
||||
* @param activeChar
|
||||
* @return command success
|
||||
*/
|
||||
public boolean useUserCommand(int id, L2PcInstance activeChar);
|
||||
boolean useUserCommand(int id, L2PcInstance activeChar);
|
||||
|
||||
/**
|
||||
* this method is called at initialization to register all the item ids automatically
|
||||
* @return all known itemIds
|
||||
*/
|
||||
public int[] getUserCommandList();
|
||||
int[] getUserCommandList();
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
public interface IVoicedCommandHandler
|
||||
{
|
||||
public static Logger _log = Logger.getLogger(IVoicedCommandHandler.class.getName());
|
||||
Logger _log = Logger.getLogger(IVoicedCommandHandler.class.getName());
|
||||
|
||||
/**
|
||||
* this is the worker method that is called when someone uses an admin command.
|
||||
@@ -31,11 +31,11 @@ public interface IVoicedCommandHandler
|
||||
* @param params
|
||||
* @return command success
|
||||
*/
|
||||
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params);
|
||||
boolean useVoicedCommand(String command, L2PcInstance activeChar, String params);
|
||||
|
||||
/**
|
||||
* this method is called at initialization to register all the item ids automatically
|
||||
* @return all known itemIds
|
||||
*/
|
||||
public String[] getVoicedCommandList();
|
||||
String[] getVoicedCommandList();
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@ public interface IWriteBoardHandler extends IParseBoardHandler
|
||||
* @param arg5 the fifth argument
|
||||
* @return
|
||||
*/
|
||||
public boolean writeCommunityBoardCommand(L2PcInstance player, String arg1, String arg2, String arg3, String arg4, String arg5);
|
||||
boolean writeCommunityBoardCommand(L2PcInstance player, String arg1, String arg2, String arg3, String arg4, String arg5);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class VoicedCommandHandler implements IHandler<IVoicedCommandHandler, Str
|
||||
@Override
|
||||
public IVoicedCommandHandler getHandler(String voicedCommand)
|
||||
{
|
||||
return _datatable.get((voicedCommand.contains(" ") ? voicedCommand.substring(0, voicedCommand.indexOf(" ")) : voicedCommand));
|
||||
return _datatable.get(voicedCommand.contains(" ") ? voicedCommand.substring(0, voicedCommand.indexOf(" ")) : voicedCommand);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user