Cleanup of unnecessary void method and class modifiers.
This commit is contained in:
@@ -73,7 +73,7 @@ public class HarnakUndergroundRuinsZone extends AbstractNpcAI
|
||||
return super.onAdvEvent(event, npc, player);
|
||||
}
|
||||
|
||||
private static final class zoneInfo
|
||||
private static class zoneInfo
|
||||
{
|
||||
private int currentPoints = 0;
|
||||
private int currentMonitorizedDamage = 0;
|
||||
@@ -121,7 +121,7 @@ public class HarnakUndergroundRuinsZone extends AbstractNpcAI
|
||||
}
|
||||
}
|
||||
|
||||
private static final class changeZoneStage implements Runnable
|
||||
private static class changeZoneStage implements Runnable
|
||||
{
|
||||
private final ZoneType _zone;
|
||||
|
||||
|
@@ -437,7 +437,7 @@ public class Trandon extends AbstractNpcAI
|
||||
return "DualSkill-" + level;
|
||||
}
|
||||
|
||||
private final void takeSkills(Player player, String type)
|
||||
private void takeSkills(Player player, String type)
|
||||
{
|
||||
final PlayerVariables vars = player.getVariables();
|
||||
final String list = vars.getString(type, "");
|
||||
@@ -455,7 +455,7 @@ public class Trandon extends AbstractNpcAI
|
||||
}
|
||||
}
|
||||
|
||||
private final void giveSkills(Player player, String type)
|
||||
private void giveSkills(Player player, String type)
|
||||
{
|
||||
final String list = player.getVariables().getString(type, "");
|
||||
if (!list.isEmpty())
|
||||
|
@@ -768,7 +768,7 @@ public class Antharas extends AbstractNpcAI
|
||||
GrandBossManager.getInstance().getStatSet(ANTHARAS).set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
}
|
||||
|
||||
private final void refreshAiParams(Player attacker, int damage)
|
||||
private void refreshAiParams(Player attacker, int damage)
|
||||
{
|
||||
if ((attacker_1 != null) && (attacker == attacker_1))
|
||||
{
|
||||
|
@@ -621,12 +621,12 @@ public class Baium extends AbstractNpcAI
|
||||
return super.unload(removeFromList);
|
||||
}
|
||||
|
||||
private final void refreshAiParams(Creature attacker, Npc npc, int damage)
|
||||
private void refreshAiParams(Creature attacker, Npc npc, int damage)
|
||||
{
|
||||
refreshAiParams(attacker, npc, damage, damage);
|
||||
}
|
||||
|
||||
private final void refreshAiParams(Creature attacker, Npc npc, int damage, int aggro)
|
||||
private void refreshAiParams(Creature attacker, Npc npc, int damage, int aggro)
|
||||
{
|
||||
final int newAggroVal = damage + getRandom(3000);
|
||||
final int aggroVal = aggro + 1000;
|
||||
|
@@ -178,7 +178,7 @@ public class CastleChamberlain extends AbstractNpcAI
|
||||
return "chamberlain-21.html";
|
||||
}
|
||||
|
||||
private final void funcReplace(Castle castle, NpcHtmlMessage html, int func, String str)
|
||||
private void funcReplace(Castle castle, NpcHtmlMessage html, int func, String str)
|
||||
{
|
||||
final CastleFunction function = castle.getCastleFunction(func);
|
||||
if (function == null)
|
||||
|
@@ -1541,7 +1541,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
activeChar.sendPacket(adminReply);
|
||||
}
|
||||
|
||||
private final class IpPack
|
||||
private class IpPack
|
||||
{
|
||||
String ip;
|
||||
int[][] tracert;
|
||||
|
@@ -77,7 +77,7 @@ public class AdminHtml implements IAdminCommandHandler
|
||||
* @param activeChar activeChar where html is shown
|
||||
* @param path relative path from directory data/html/admin/ to html
|
||||
*/
|
||||
static void showAdminHtml(Player activeChar, String path)
|
||||
public static void showAdminHtml(Player activeChar, String path)
|
||||
{
|
||||
showHtml(activeChar, "data/html/admin/" + path, false);
|
||||
}
|
||||
|
@@ -110,7 +110,7 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
* @param npc NPC which allows to enter into instance
|
||||
* @param templateId template ID of instance where player wants to enter
|
||||
*/
|
||||
protected final void enterInstance(Player player, Npc npc, int templateId)
|
||||
protected void enterInstance(Player player, Npc npc, int templateId)
|
||||
{
|
||||
Instance instance = getPlayerInstance(player);
|
||||
if (instance != null) // Player has already any instance active
|
||||
|
@@ -568,7 +568,7 @@ public class Kamaloka extends AbstractInstance
|
||||
* Spawn all NPCs in kamaloka
|
||||
* @param world instanceWorld
|
||||
*/
|
||||
private final void spawnKama(Instance world)
|
||||
private void spawnKama(Instance world)
|
||||
{
|
||||
int[] npcs;
|
||||
int[][] spawns;
|
||||
|
@@ -32,7 +32,7 @@ import org.l2jmobius.gameserver.util.Util;
|
||||
*/
|
||||
public class Q00371_ShrieksOfGhosts extends Quest
|
||||
{
|
||||
private static final class DropInfo
|
||||
private static class DropInfo
|
||||
{
|
||||
public int _firstChance;
|
||||
public int _secondChance;
|
||||
|
@@ -449,7 +449,7 @@ public class Q00373_SupplierOfReagents extends Quest
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private static final class Entry
|
||||
private static class Entry
|
||||
{
|
||||
private final int item;
|
||||
private final String html;
|
||||
|
@@ -483,7 +483,7 @@ public class Q00421_LittleWingsBigAdventure extends Quest
|
||||
return player.getInventory().getItemByItemId(fluteItemId);
|
||||
}
|
||||
|
||||
private static final class NpcData
|
||||
private static class NpcData
|
||||
{
|
||||
public NpcStringId message;
|
||||
public int memoStateMod;
|
||||
|
@@ -486,7 +486,7 @@ public class Q00663_SeductiveWhispers extends Quest
|
||||
}
|
||||
}
|
||||
|
||||
private static final class Card
|
||||
private static class Card
|
||||
{
|
||||
private final int _number;
|
||||
private final Side _side;
|
||||
|
@@ -42,7 +42,7 @@ import ai.AbstractNpcAI;
|
||||
|
||||
public abstract class AirShipController extends AbstractNpcAI
|
||||
{
|
||||
private final class DecayTask implements Runnable
|
||||
private class DecayTask implements Runnable
|
||||
{
|
||||
public DecayTask()
|
||||
{
|
||||
@@ -58,7 +58,7 @@ public abstract class AirShipController extends AbstractNpcAI
|
||||
}
|
||||
}
|
||||
|
||||
private final class DepartTask implements Runnable
|
||||
private class DepartTask implements Runnable
|
||||
{
|
||||
public DepartTask()
|
||||
{
|
||||
|
@@ -119,7 +119,7 @@ public class AirShipGludioGracia extends AbstractNpcAI implements Runnable
|
||||
_ship.runEngine(60000);
|
||||
}
|
||||
|
||||
private final void broadcastInGludio(NpcStringId npcString)
|
||||
private void broadcastInGludio(NpcStringId npcString)
|
||||
{
|
||||
if (!_foundAtcGludio)
|
||||
{
|
||||
@@ -132,7 +132,7 @@ public class AirShipGludioGracia extends AbstractNpcAI implements Runnable
|
||||
}
|
||||
}
|
||||
|
||||
private final void broadcastInGracia(NpcStringId npcStringId)
|
||||
private void broadcastInGracia(NpcStringId npcStringId)
|
||||
{
|
||||
if (!_foundAtcGracia)
|
||||
{
|
||||
|
Reference in New Issue
Block a user