Cleanup of unnecessary void method and class modifiers.
This commit is contained in:
@@ -770,7 +770,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))
|
||||
{
|
||||
|
||||
@@ -616,12 +616,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;
|
||||
|
||||
@@ -169,7 +169,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.getFunction(func);
|
||||
if (function == null)
|
||||
|
||||
@@ -163,7 +163,7 @@ public class VarkaKetra extends AbstractNpcAI
|
||||
}
|
||||
}
|
||||
|
||||
private final void decreaseAlliance(Player player, int[] marks)
|
||||
private void decreaseAlliance(Player player, int[] marks)
|
||||
{
|
||||
for (int i = 0; i < marks.length; i++)
|
||||
{
|
||||
@@ -179,7 +179,7 @@ public class VarkaKetra extends AbstractNpcAI
|
||||
}
|
||||
}
|
||||
|
||||
private final void exitQuests(Player player, String[] quests)
|
||||
private void exitQuests(Player player, String[] quests)
|
||||
{
|
||||
for (String quest : quests)
|
||||
{
|
||||
|
||||
@@ -87,7 +87,7 @@ public class FortressOfResistance extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
|
||||
private final void buildMessengerMessage()
|
||||
private void buildMessengerMessage()
|
||||
{
|
||||
final String html = HtmCache.getInstance().getHtm(null, "data/scripts/conquerablehalls/FortressOfResistance/partisan_ordery_brakel001.htm");
|
||||
if (html != null)
|
||||
|
||||
@@ -671,7 +671,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
saveMember(clanId, clan.getLeaderId());
|
||||
}
|
||||
|
||||
private final void doUnSpawns(ClanData data)
|
||||
private void doUnSpawns(ClanData data)
|
||||
{
|
||||
if (data.flagInstance != null)
|
||||
{
|
||||
@@ -685,7 +685,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
|
||||
private final void removeParticipant(int clanId, boolean teleport)
|
||||
private void removeParticipant(int clanId, boolean teleport)
|
||||
{
|
||||
final ClanData dat = _data.remove(clanId);
|
||||
if (dat != null)
|
||||
@@ -777,7 +777,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
|
||||
private final void loadAttackerMembers(int clanId)
|
||||
private void loadAttackerMembers(int clanId)
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection())
|
||||
{
|
||||
@@ -805,7 +805,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
|
||||
private final void saveClan(int clanId, int flag)
|
||||
private void saveClan(int clanId, int flag)
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection())
|
||||
{
|
||||
@@ -823,7 +823,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
|
||||
private final void saveNpc(int npc, int clanId)
|
||||
private void saveNpc(int npc, int clanId)
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection())
|
||||
{
|
||||
@@ -839,7 +839,7 @@ public abstract class FlagWar extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
|
||||
private final void saveMember(int clanId, int objectId)
|
||||
private void saveMember(int clanId, int objectId)
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection())
|
||||
{
|
||||
|
||||
@@ -1387,7 +1387,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);
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ public class Wedding implements IVoicedCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
static class EscapeFinalizer implements Runnable
|
||||
private static class EscapeFinalizer implements Runnable
|
||||
{
|
||||
private final Player _player;
|
||||
private final Location _partnerLoc;
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.quest.State;
|
||||
*/
|
||||
public class Q00257_TheGuardIsBusy extends Quest
|
||||
{
|
||||
public static final class MobDrop extends ItemHolder
|
||||
public static class MobDrop extends ItemHolder
|
||||
{
|
||||
private final int _chance;
|
||||
private final int _random;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
PARTY_RANDOM
|
||||
}
|
||||
|
||||
private static final class LevelingInfo
|
||||
private static class LevelingInfo
|
||||
{
|
||||
private final AbsorbCrystalType _absorbCrystalType;
|
||||
private final boolean _isSkillNeeded;
|
||||
@@ -88,7 +88,7 @@ public class Q00350_EnhanceYourWeapon extends Quest
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SoulCrystal
|
||||
private static class SoulCrystal
|
||||
{
|
||||
private final int _level;
|
||||
private final int _itemId;
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.l2jmobius.gameserver.util.Util;
|
||||
*/
|
||||
public class Q00352_HelpRoodRaiseANewPet extends Quest
|
||||
{
|
||||
private static final class DropInfo
|
||||
private static class DropInfo
|
||||
{
|
||||
public int _firstChance;
|
||||
public int _secondChance;
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.l2jmobius.gameserver.util.Util;
|
||||
*/
|
||||
public class Q00355_FamilyHonor extends Quest
|
||||
{
|
||||
private static final class DropInfo
|
||||
private static class DropInfo
|
||||
{
|
||||
public int _firstChance;
|
||||
public int _secondChance;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -452,7 +452,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;
|
||||
|
||||
@@ -486,7 +486,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;
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
*/
|
||||
public class Q00619_RelicsOfTheOldEmpire extends Quest
|
||||
{
|
||||
private static final class DropInfo
|
||||
private static class DropInfo
|
||||
{
|
||||
public double _dropChance;
|
||||
public int _doubleItemChance;
|
||||
|
||||
Reference in New Issue
Block a user