Visibility changes.
This commit is contained in:
@@ -28,7 +28,7 @@ import handlers.effecthandlers.*;
|
||||
* Effect Master handler.
|
||||
* @author BiggBoss, Zoey76
|
||||
*/
|
||||
public final class EffectMasterHandler
|
||||
final class EffectMasterHandler
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(EffectMasterHandler.class.getName());
|
||||
|
||||
|
@@ -285,7 +285,7 @@ import handlers.voicedcommandhandlers.Wedding;
|
||||
* Master handler.
|
||||
* @author UnAfraid
|
||||
*/
|
||||
public class MasterHandler
|
||||
final class MasterHandler
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(MasterHandler.class.getName());
|
||||
|
||||
|
@@ -438,7 +438,7 @@ public class AdminAdmin implements IAdminCommandHandler
|
||||
AdminHtml.showAdminHtml(activeChar, filename + "_menu.htm");
|
||||
}
|
||||
|
||||
public void showConfigPage(L2PcInstance activeChar)
|
||||
private void showConfigPage(L2PcInstance activeChar)
|
||||
{
|
||||
final NpcHtmlMessage adminReply = new NpcHtmlMessage();
|
||||
final StringBuilder replyMSG = new StringBuilder("<html><title>L2J :: Config</title><body>");
|
||||
|
@@ -213,7 +213,7 @@ public class AdminBuffs implements IAdminCommandHandler
|
||||
* @param gmchar the player to switch the Game Master skills.
|
||||
* @param toAuraSkills if {@code true} it will remove "GM Aura" skills and add "GM regular" skills, vice versa if {@code false}.
|
||||
*/
|
||||
public static void switchSkills(L2PcInstance gmchar, boolean toAuraSkills)
|
||||
private static void switchSkills(L2PcInstance gmchar, boolean toAuraSkills)
|
||||
{
|
||||
final Collection<Skill> skills = toAuraSkills ? SkillTreesData.getInstance().getGMSkillTree().values() : SkillTreesData.getInstance().getGMAuraSkillTree().values();
|
||||
for (Skill skill : skills)
|
||||
@@ -229,7 +229,7 @@ public class AdminBuffs implements IAdminCommandHandler
|
||||
return ADMIN_COMMANDS;
|
||||
}
|
||||
|
||||
public static void showBuffs(L2PcInstance activeChar, L2Character target, int page, boolean passive)
|
||||
private static void showBuffs(L2PcInstance activeChar, L2Character target, int page, boolean passive)
|
||||
{
|
||||
final List<BuffInfo> effects = new ArrayList<>();
|
||||
if (!passive)
|
||||
|
@@ -465,7 +465,7 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
return note + result.toString();
|
||||
}
|
||||
|
||||
public void showMainPage(L2PcInstance activeChar)
|
||||
private void showMainPage(L2PcInstance activeChar)
|
||||
{
|
||||
final NpcHtmlMessage adminReply = new NpcHtmlMessage();
|
||||
|
||||
@@ -474,7 +474,7 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
activeChar.sendPacket(adminReply);
|
||||
}
|
||||
|
||||
public void showNewEventPage(L2PcInstance activeChar)
|
||||
private void showNewEventPage(L2PcInstance activeChar)
|
||||
{
|
||||
final NpcHtmlMessage adminReply = new NpcHtmlMessage();
|
||||
|
||||
@@ -515,7 +515,7 @@ public class AdminEventEngine implements IAdminCommandHandler
|
||||
activeChar.sendPacket(adminReply);
|
||||
}
|
||||
|
||||
public void showEventParameters(L2PcInstance activeChar, int teamnumbers)
|
||||
private void showEventParameters(L2PcInstance activeChar, int teamnumbers)
|
||||
{
|
||||
final NpcHtmlMessage adminReply = new NpcHtmlMessage();
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
|
@@ -76,7 +76,7 @@ public class AdminHtml implements IAdminCommandHandler
|
||||
* @param activeChar activeChar where html is shown
|
||||
* @param path relative path from directory html/admin/ to html
|
||||
*/
|
||||
public static void showAdminHtml(L2PcInstance activeChar, String path)
|
||||
static void showAdminHtml(L2PcInstance activeChar, String path)
|
||||
{
|
||||
showHtml(activeChar, "html/admin/" + path, false);
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class AdminHtml implements IAdminCommandHandler
|
||||
* @param path relative path from Config.DATAPACK_ROOT to html.
|
||||
* @param reload {@code true} will reload html and show it {@code false} will show it from cache.
|
||||
*/
|
||||
public static void showHtml(L2PcInstance activeChar, String path, boolean reload)
|
||||
private static void showHtml(L2PcInstance activeChar, String path, boolean reload)
|
||||
{
|
||||
String content = null;
|
||||
if (!reload)
|
||||
|
@@ -38,8 +38,7 @@ public class AdminMonsterRace implements IAdminCommandHandler
|
||||
{
|
||||
"admin_mons"
|
||||
};
|
||||
|
||||
protected static int state = -1;
|
||||
static int state = -1;
|
||||
|
||||
@Override
|
||||
public boolean useAdminCommand(String command, L2PcInstance activeChar)
|
||||
@@ -113,12 +112,12 @@ public class AdminMonsterRace implements IAdminCommandHandler
|
||||
}
|
||||
}
|
||||
|
||||
class RunRace implements Runnable
|
||||
private class RunRace implements Runnable
|
||||
{
|
||||
private final int[][] codes;
|
||||
private final L2PcInstance activeChar;
|
||||
|
||||
public RunRace(int[][] pCodes, L2PcInstance pActiveChar)
|
||||
RunRace(int[][] pCodes, L2PcInstance pActiveChar)
|
||||
{
|
||||
codes = pCodes;
|
||||
activeChar = pActiveChar;
|
||||
|
@@ -30,7 +30,7 @@ public class AdminSummon implements IAdminCommandHandler
|
||||
{
|
||||
private static final Logger _log = Logger.getLogger(AdminSummon.class.getName());
|
||||
|
||||
public static final String[] ADMIN_COMMANDS =
|
||||
private static final String[] ADMIN_COMMANDS =
|
||||
{
|
||||
"admin_summon"
|
||||
};
|
||||
|
@@ -90,7 +90,7 @@ public class Loto implements IBypassHandler
|
||||
// 23 - current lottery jackpot
|
||||
// 24 - Previous winning numbers/Prize claim
|
||||
// >24 - check lottery ticket by item object id
|
||||
public static final void showLotoWindow(L2PcInstance player, L2Npc npc, int val)
|
||||
private static final void showLotoWindow(L2PcInstance player, L2Npc npc, int val)
|
||||
{
|
||||
final int npcId = npc.getTemplate().getId();
|
||||
String filename;
|
||||
|
@@ -214,7 +214,7 @@ public class NpcViewMod implements IBypassHandler
|
||||
activeChar.sendPacket(html);
|
||||
}
|
||||
|
||||
public static String getDropListButtons(L2Npc npc)
|
||||
private static String getDropListButtons(L2Npc npc)
|
||||
{
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
final Map<DropListScope, List<IDropItem>> dropLists = npc.getTemplate().getDropLists();
|
||||
@@ -235,7 +235,7 @@ public class NpcViewMod implements IBypassHandler
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void sendNpcDropList(L2PcInstance activeChar, L2Npc npc, DropListScope dropListScope, int page)
|
||||
private static void sendNpcDropList(L2PcInstance activeChar, L2Npc npc, DropListScope dropListScope, int page)
|
||||
{
|
||||
final List<IDropItem> dropList = npc.getTemplate().getDropList(dropListScope);
|
||||
if ((dropList == null) || dropList.isEmpty())
|
||||
|
@@ -202,7 +202,7 @@ public class QuestLink implements IBypassHandler
|
||||
* @param npc the L2NpcInstance that chats with the {@code player}
|
||||
* @param questId the Id of the quest to display the message
|
||||
*/
|
||||
public static void showQuestWindow(L2PcInstance player, L2Npc npc, String questId)
|
||||
private static void showQuestWindow(L2PcInstance player, L2Npc npc, String questId)
|
||||
{
|
||||
String content = null;
|
||||
|
||||
|
@@ -78,7 +78,7 @@ public class RentPet implements IBypassHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
public static final void tryRentPet(L2PcInstance player, int val)
|
||||
private static final void tryRentPet(L2PcInstance player, int val)
|
||||
{
|
||||
if ((player == null) || player.hasSummon() || player.isMounted() || player.isRentedPet() || player.isTransformed() || player.isCursedWeaponEquipped())
|
||||
{
|
||||
|
@@ -21,9 +21,9 @@ import com.l2jmobius.util.Rnd;
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ChatRandomizer
|
||||
class ChatRandomizer
|
||||
{
|
||||
public static String randomize(String text)
|
||||
static String randomize(String text)
|
||||
{
|
||||
final StringBuilder textOut = new StringBuilder();
|
||||
for (char c : text.toCharArray())
|
||||
|
@@ -27,7 +27,7 @@ import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
*/
|
||||
public final class BlockDamage extends AbstractEffect
|
||||
{
|
||||
public enum BlockType
|
||||
private enum BlockType
|
||||
{
|
||||
HP,
|
||||
MP
|
||||
|
@@ -53,7 +53,7 @@ public final class SoulEating extends AbstractEffect
|
||||
}
|
||||
}
|
||||
|
||||
public void onExperienceReceived(L2Playable playable, long exp)
|
||||
private void onExperienceReceived(L2Playable playable, long exp)
|
||||
{
|
||||
// TODO: Verify logic.
|
||||
if (playable.isPlayer() && (exp >= _expNeeded))
|
||||
|
@@ -56,7 +56,6 @@ public final class TriggerSkillByAttack extends AbstractEffect
|
||||
* @param set
|
||||
* @param params
|
||||
*/
|
||||
|
||||
public TriggerSkillByAttack(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
|
||||
{
|
||||
super(attachCond, applyCond, set, params);
|
||||
|
@@ -48,7 +48,6 @@ public final class TriggerSkillByAvoid extends AbstractEffect
|
||||
* @param set
|
||||
* @param params
|
||||
*/
|
||||
|
||||
public TriggerSkillByAvoid(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
|
||||
{
|
||||
super(attachCond, applyCond, set, params);
|
||||
|
@@ -50,7 +50,6 @@ public final class TriggerSkillBySkill extends AbstractEffect
|
||||
* @param set
|
||||
* @param params
|
||||
*/
|
||||
|
||||
public TriggerSkillBySkill(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
|
||||
{
|
||||
super(attachCond, applyCond, set, params);
|
||||
|
@@ -57,7 +57,7 @@ public class PetFood implements IItemHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean useFood(L2Playable activeChar, int skillId, int skillLevel, L2ItemInstance item)
|
||||
private boolean useFood(L2Playable activeChar, int skillId, int skillLevel, L2ItemInstance item)
|
||||
{
|
||||
final Skill skill = SkillData.getInstance().getSkill(skillId, skillLevel);
|
||||
if (skill != null)
|
||||
|
@@ -48,7 +48,7 @@ public class JailHandler implements IPunishmentHandler
|
||||
Containers.Global().addListener(new ConsumerEventListener(Containers.Global(), EventType.ON_PLAYER_LOGIN, (OnPlayerLogin event) -> onPlayerLogin(event), this));
|
||||
}
|
||||
|
||||
public void onPlayerLogin(OnPlayerLogin event)
|
||||
private void onPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
final L2PcInstance activeChar = event.getActiveChar();
|
||||
if (activeChar.isJailed() && !activeChar.isInsideZone(ZoneId.JAIL))
|
||||
|
@@ -149,7 +149,7 @@ public class AreaFriendly implements ITargetTypeHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
public class CharComparator implements Comparator<L2Character>
|
||||
class CharComparator implements Comparator<L2Character>
|
||||
{
|
||||
@Override
|
||||
public int compare(L2Character char1, L2Character char2)
|
||||
|
@@ -59,7 +59,7 @@ public final class ExperienceGain implements IVoicedCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
public TerminateReturn onExperienceReceived(L2Playable playable, long exp)
|
||||
private TerminateReturn onExperienceReceived(L2Playable playable, long exp)
|
||||
{
|
||||
if (playable.isPlayer() && (playable.getActingPlayer().isDead()))
|
||||
{
|
||||
|
@@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
/**
|
||||
* @author Zoey76
|
||||
*/
|
||||
public class CastleVCmd implements IVoicedCommandHandler
|
||||
final class CastleVCmd implements IVoicedCommandHandler
|
||||
{
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
|
@@ -24,7 +24,7 @@ import com.l2jmobius.gameserver.util.Util;
|
||||
/**
|
||||
* @author Zoey76
|
||||
*/
|
||||
public class SetVCmd implements IVoicedCommandHandler
|
||||
class SetVCmd implements IVoicedCommandHandler
|
||||
{
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
|
@@ -83,7 +83,7 @@ public class Wedding implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean divorce(L2PcInstance activeChar)
|
||||
private boolean divorce(L2PcInstance activeChar)
|
||||
{
|
||||
if (activeChar.getPartnerId() == 0)
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public class Wedding implements IVoicedCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean engage(L2PcInstance activeChar)
|
||||
private boolean engage(L2PcInstance activeChar)
|
||||
{
|
||||
if (activeChar.getTarget() == null)
|
||||
{
|
||||
@@ -243,7 +243,7 @@ public class Wedding implements IVoicedCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean goToLove(L2PcInstance activeChar)
|
||||
private boolean goToLove(L2PcInstance activeChar)
|
||||
{
|
||||
if (!activeChar.isMarried())
|
||||
{
|
||||
@@ -426,7 +426,7 @@ public class Wedding implements IVoicedCommandHandler
|
||||
return true;
|
||||
}
|
||||
|
||||
static class EscapeFinalizer implements Runnable
|
||||
private static class EscapeFinalizer implements Runnable
|
||||
{
|
||||
private final L2PcInstance _activeChar;
|
||||
private final Location _partnerLoc;
|
||||
|
Reference in New Issue
Block a user