Cleanup of unnecessary void method and class modifiers.
This commit is contained in:
@@ -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)
|
||||
|
@@ -1517,7 +1517,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
|
||||
|
@@ -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;
|
||||
|
@@ -60,7 +60,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;
|
||||
@@ -89,7 +89,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 Q00355_FamilyHonor extends Quest
|
||||
{
|
||||
private static final class DropInfo
|
||||
private static class DropInfo
|
||||
{
|
||||
public int _firstChance;
|
||||
public int _secondChance;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user