Cleanup of unnecessary void method and class modifiers.
This commit is contained in:
parent
7e3dd71d77
commit
e6085edc4c
@ -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)
|
||||
|
@ -1521,7 +1521,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;
|
||||
|
@ -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 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)
|
||||
{
|
||||
|
@ -514,7 +514,7 @@ public class Shutdown extends Thread
|
||||
* A simple class used to track down the estimated time of method executions.<br>
|
||||
* Once this class is created, it saves the start time, and when you want to get the estimated time, use the getEstimatedTime() method.
|
||||
*/
|
||||
private static final class TimeCounter
|
||||
private static class TimeCounter
|
||||
{
|
||||
private long _startTime;
|
||||
|
||||
|
@ -31,7 +31,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
/**
|
||||
* @author Sahar
|
||||
*/
|
||||
public final class PaperdollCache
|
||||
public class PaperdollCache
|
||||
{
|
||||
private final Set<Item> _paperdollItems = ConcurrentHashMap.newKeySet();
|
||||
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.cache;
|
||||
/**
|
||||
* @author Sahar
|
||||
*/
|
||||
public final class RelationCache
|
||||
public class RelationCache
|
||||
{
|
||||
private final int _relation;
|
||||
private final boolean _isAutoAttackable;
|
||||
|
@ -474,7 +474,7 @@ public class BotReportTable
|
||||
/**
|
||||
* Represents the info about a reporter
|
||||
*/
|
||||
private final class ReporterCharData
|
||||
private class ReporterCharData
|
||||
{
|
||||
private long _lastReport;
|
||||
private byte _reportPoints;
|
||||
@ -510,7 +510,7 @@ public class BotReportTable
|
||||
/**
|
||||
* Represents the info about a reported character
|
||||
*/
|
||||
private final class ReportedCharData
|
||||
private class ReportedCharData
|
||||
{
|
||||
Map<Integer, Long> _reporters;
|
||||
|
||||
@ -556,7 +556,7 @@ public class BotReportTable
|
||||
/**
|
||||
* SAX loader to parse /config/BotReportPunishments.xml file
|
||||
*/
|
||||
private final class PunishmentsLoader extends DefaultHandler
|
||||
private class PunishmentsLoader extends DefaultHandler
|
||||
{
|
||||
PunishmentsLoader()
|
||||
{
|
||||
@ -622,7 +622,7 @@ public class BotReportTable
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
static final BotReportTable INSTANCE = new BotReportTable();
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ public class CharNameTable
|
||||
}
|
||||
}
|
||||
|
||||
private final void addName(int objectId, String name)
|
||||
private void addName(int objectId, String name)
|
||||
{
|
||||
if ((name != null) && !name.equals(_chars.get(objectId)))
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ public class SayuneData implements IXmlReader
|
||||
}
|
||||
}
|
||||
|
||||
private final void parseEntries(SayuneEntry lastEntry, Node n)
|
||||
private void parseEntries(SayuneEntry lastEntry, Node n)
|
||||
{
|
||||
NamedNodeMap attrs;
|
||||
for (Node d = n.getFirstChild(); d != null; d = d.getNextSibling())
|
||||
|
@ -386,7 +386,7 @@ public enum ClassId implements IIdentifiable
|
||||
return _nextClassIds;
|
||||
}
|
||||
|
||||
private final void addNextClassId(ClassId cId)
|
||||
private void addNextClassId(ClassId cId)
|
||||
{
|
||||
_nextClassIds.add(cId);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.geoengine.geodata;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class Cell
|
||||
public class Cell
|
||||
{
|
||||
/** East NSWE flag */
|
||||
public static final byte NSWE_EAST = 1 << 0;
|
||||
|
@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.regions.Region;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class GeoData
|
||||
public class GeoData
|
||||
{
|
||||
// world dimensions: 1048576 * 1048576 = 1099511627776
|
||||
private static final int WORLD_MIN_X = -655360;
|
||||
|
@ -23,7 +23,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.IBlock;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class ComplexBlock implements IBlock
|
||||
public class ComplexBlock implements IBlock
|
||||
{
|
||||
private final short[] _data;
|
||||
|
||||
|
@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.IRegion;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class NullRegion implements IRegion
|
||||
public class NullRegion implements IRegion
|
||||
{
|
||||
public static final NullRegion INSTANCE = new NullRegion();
|
||||
|
||||
|
@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.blocks.MultilayerBlock;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class Region implements IRegion
|
||||
public class Region implements IRegion
|
||||
{
|
||||
private final IBlock[] _blocks = new IBlock[IRegion.REGION_BLOCKS];
|
||||
|
||||
|
@ -85,7 +85,7 @@ public class CellNodeBuffer
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void free()
|
||||
public void free()
|
||||
{
|
||||
_current = null;
|
||||
|
||||
@ -136,7 +136,7 @@ public class CellNodeBuffer
|
||||
return result;
|
||||
}
|
||||
|
||||
private final void getNeighbors()
|
||||
private void getNeighbors()
|
||||
{
|
||||
if (_current.getLoc().canGoNone())
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ public class ConditionHandler
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ConditionHandler INSTANCE = new ConditionHandler();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class EffectHandler
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final EffectHandler INSTANCE = new EffectHandler();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class SkillConditionHandler
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final SkillConditionHandler INSTANCE = new SkillConditionHandler();
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ public class PetData
|
||||
return _skills;
|
||||
}
|
||||
|
||||
public static final class PetSkillLearn extends SkillHolder
|
||||
public static class PetSkillLearn extends SkillHolder
|
||||
{
|
||||
private final int _minLevel;
|
||||
|
||||
|
@ -86,7 +86,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
||||
* Sets the instance type.
|
||||
* @param newInstanceType the instance type to set
|
||||
*/
|
||||
protected final void setInstanceType(InstanceType newInstanceType)
|
||||
protected void setInstanceType(InstanceType newInstanceType)
|
||||
{
|
||||
_instanceType = newInstanceType;
|
||||
}
|
||||
|
@ -311,7 +311,7 @@ public class Attackable extends Npc
|
||||
return true;
|
||||
}
|
||||
|
||||
static class PartyContainer
|
||||
private static class PartyContainer
|
||||
{
|
||||
public Party party;
|
||||
public long damage;
|
||||
|
@ -2205,7 +2205,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
return _isRunning;
|
||||
}
|
||||
|
||||
private final void setRunning(boolean value)
|
||||
private void setRunning(boolean value)
|
||||
{
|
||||
if (_isRunning == value)
|
||||
{
|
||||
@ -2396,7 +2396,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
* When a new instance of Creature is spawned, server just create a link between the instance and the template This link is stored in <b>_template</b>.
|
||||
* @param template
|
||||
*/
|
||||
protected final void setTemplate(CreatureTemplate template)
|
||||
protected void setTemplate(CreatureTemplate template)
|
||||
{
|
||||
_template = template;
|
||||
}
|
||||
@ -5657,7 +5657,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
return MoveType.STANDING;
|
||||
}
|
||||
|
||||
protected final void computeStatusUpdate(StatusUpdate su, StatusUpdateType type)
|
||||
protected void computeStatusUpdate(StatusUpdate su, StatusUpdateType type)
|
||||
{
|
||||
final int newValue = type.getValue(this);
|
||||
_statusUpdates.compute(type, (key, oldValue) ->
|
||||
@ -5671,7 +5671,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
});
|
||||
}
|
||||
|
||||
protected final void addStatusUpdateValue(StatusUpdateType type)
|
||||
protected void addStatusUpdateValue(StatusUpdateType type)
|
||||
{
|
||||
_statusUpdates.put(type, type.getValue(this));
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ public class ControllableAirShip extends AirShip
|
||||
}
|
||||
}
|
||||
|
||||
protected final class ConsumeFuelTask implements Runnable
|
||||
protected class ConsumeFuelTask implements Runnable
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
@ -317,7 +317,7 @@ public class ControllableAirShip extends AirShip
|
||||
}
|
||||
}
|
||||
|
||||
protected final class CheckTask implements Runnable
|
||||
protected class CheckTask implements Runnable
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
@ -330,7 +330,7 @@ public class ControllableAirShip extends AirShip
|
||||
}
|
||||
}
|
||||
|
||||
protected final class DecayTask implements Runnable
|
||||
protected class DecayTask implements Runnable
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
|
@ -56,7 +56,7 @@ public class FortDoorman extends Doorman
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void openDoors(Player player, String command)
|
||||
protected void openDoors(Player player, String command)
|
||||
{
|
||||
final StringTokenizer st = new StringTokenizer(command.substring(10), ", ");
|
||||
st.nextToken();
|
||||
@ -68,7 +68,7 @@ public class FortDoorman extends Doorman
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void closeDoors(Player player, String command)
|
||||
protected void closeDoors(Player player, String command)
|
||||
{
|
||||
final StringTokenizer st = new StringTokenizer(command.substring(11), ", ");
|
||||
st.nextToken();
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.clientstrings;
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
final class BuilderContainer extends Builder
|
||||
public class BuilderContainer extends Builder
|
||||
{
|
||||
private final Builder[] _builders;
|
||||
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.clientstrings;
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
final class BuilderObject extends Builder
|
||||
public class BuilderObject extends Builder
|
||||
{
|
||||
private final int _index;
|
||||
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.clientstrings;
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
final class BuilderText extends Builder
|
||||
public class BuilderText extends Builder
|
||||
{
|
||||
private final String _text;
|
||||
|
||||
|
@ -43,22 +43,22 @@ public class ItemAuctionBid
|
||||
return _lastBid;
|
||||
}
|
||||
|
||||
final void setLastBid(long lastBid)
|
||||
public void setLastBid(long lastBid)
|
||||
{
|
||||
_lastBid = lastBid;
|
||||
}
|
||||
|
||||
final void cancelBid()
|
||||
public void cancelBid()
|
||||
{
|
||||
_lastBid = -1;
|
||||
}
|
||||
|
||||
final boolean isCanceled()
|
||||
public boolean isCanceled()
|
||||
{
|
||||
return _lastBid <= 0;
|
||||
}
|
||||
|
||||
final Player getPlayer()
|
||||
public Player getPlayer()
|
||||
{
|
||||
return World.getInstance().getPlayer(_playerObjId);
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ public class ItemAuctionInstance
|
||||
return null;
|
||||
}
|
||||
|
||||
final void checkAndSetCurrentAndNextAuction()
|
||||
private void checkAndSetCurrentAndNextAuction()
|
||||
{
|
||||
final ItemAuction[] auctions = _auctions.values().toArray(new ItemAuction[_auctions.size()]);
|
||||
|
||||
@ -376,7 +376,7 @@ public class ItemAuctionInstance
|
||||
return auctions;
|
||||
}
|
||||
|
||||
private final class ScheduleAuctionTask implements Runnable
|
||||
private class ScheduleAuctionTask implements Runnable
|
||||
{
|
||||
private final ItemAuction _auction;
|
||||
|
||||
@ -476,7 +476,7 @@ public class ItemAuctionInstance
|
||||
}
|
||||
}
|
||||
|
||||
final void onAuctionFinished(ItemAuction auction)
|
||||
private void onAuctionFinished(ItemAuction auction)
|
||||
{
|
||||
auction.broadcastToAllBiddersInternal(new SystemMessage(SystemMessageId.S1_S_AUCTION_HAS_ENDED).addInt(auction.getAuctionId()));
|
||||
|
||||
@ -511,7 +511,7 @@ public class ItemAuctionInstance
|
||||
}
|
||||
}
|
||||
|
||||
final void setStateTask(ScheduledFuture<?> future)
|
||||
private void setStateTask(ScheduledFuture<?> future)
|
||||
{
|
||||
final ScheduledFuture<?> stateTask = _stateTask;
|
||||
if (stateTask != null)
|
||||
|
@ -146,7 +146,7 @@ public abstract class Inventory extends ItemContainer
|
||||
private int _blockedItemSlotsMask;
|
||||
|
||||
// Recorder of alterations in inventory
|
||||
private static final class ChangeRecorder implements PaperdollListener
|
||||
private static class ChangeRecorder implements PaperdollListener
|
||||
{
|
||||
private final Inventory _inventory;
|
||||
private final List<Item> _changed = new ArrayList<>(1);
|
||||
@ -195,7 +195,7 @@ public abstract class Inventory extends ItemContainer
|
||||
}
|
||||
}
|
||||
|
||||
private static final class BowCrossRodListener implements PaperdollListener
|
||||
private static class BowCrossRodListener implements PaperdollListener
|
||||
{
|
||||
private static BowCrossRodListener instance = new BowCrossRodListener();
|
||||
|
||||
@ -265,7 +265,7 @@ public abstract class Inventory extends ItemContainer
|
||||
}
|
||||
}
|
||||
|
||||
private static final class StatsListener implements PaperdollListener
|
||||
private static class StatsListener implements PaperdollListener
|
||||
{
|
||||
private static StatsListener instance = new StatsListener();
|
||||
|
||||
@ -287,7 +287,7 @@ public abstract class Inventory extends ItemContainer
|
||||
}
|
||||
}
|
||||
|
||||
private static final class ItemSkillsListener implements PaperdollListener
|
||||
private static class ItemSkillsListener implements PaperdollListener
|
||||
{
|
||||
private static ItemSkillsListener instance = new ItemSkillsListener();
|
||||
|
||||
@ -711,7 +711,7 @@ public abstract class Inventory extends ItemContainer
|
||||
}
|
||||
}
|
||||
|
||||
private static final class ArmorSetListener implements PaperdollListener
|
||||
private static class ArmorSetListener implements PaperdollListener
|
||||
{
|
||||
private static ArmorSetListener instance = new ArmorSetListener();
|
||||
|
||||
@ -913,7 +913,7 @@ public abstract class Inventory extends ItemContainer
|
||||
}
|
||||
}
|
||||
|
||||
private static final class BraceletListener implements PaperdollListener
|
||||
private static class BraceletListener implements PaperdollListener
|
||||
{
|
||||
private static BraceletListener instance = new BraceletListener();
|
||||
|
||||
@ -949,7 +949,7 @@ public abstract class Inventory extends ItemContainer
|
||||
}
|
||||
}
|
||||
|
||||
private static final class BroochListener implements PaperdollListener
|
||||
private static class BroochListener implements PaperdollListener
|
||||
{
|
||||
private static BroochListener instance = new BroochListener();
|
||||
|
||||
|
@ -88,7 +88,7 @@ public abstract class AbstractOlympiadGame
|
||||
return !_aborted;
|
||||
}
|
||||
|
||||
protected final void addPointsToParticipant(Participant par, int points)
|
||||
protected void addPointsToParticipant(Participant par, int points)
|
||||
{
|
||||
par.updateStat(POINTS, points);
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_HAS_EARNED_S2_POINTS_IN_THE_OLYMPIAD_GAMES);
|
||||
@ -97,7 +97,7 @@ public abstract class AbstractOlympiadGame
|
||||
broadcastPacket(sm);
|
||||
}
|
||||
|
||||
protected final void removePointsFromParticipant(Participant par, int points)
|
||||
protected void removePointsFromParticipant(Participant par, int points)
|
||||
{
|
||||
par.updateStat(POINTS, -points);
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_HAS_LOST_S2_POINTS_IN_THE_OLYMPIAD_GAMES);
|
||||
|
@ -68,7 +68,7 @@ public class OlympiadGameManager implements Runnable
|
||||
return _battleStarted;
|
||||
}
|
||||
|
||||
protected final void startBattle()
|
||||
protected void startBattle()
|
||||
{
|
||||
_battleStarted = true;
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void broadcastPacket(ServerPacket packet)
|
||||
protected void broadcastPacket(ServerPacket packet)
|
||||
{
|
||||
if (_playerOne.updatePlayer())
|
||||
{
|
||||
@ -181,7 +181,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void removals()
|
||||
protected void removals()
|
||||
{
|
||||
if (_aborted)
|
||||
{
|
||||
@ -213,7 +213,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void cleanEffects()
|
||||
protected void cleanEffects()
|
||||
{
|
||||
if ((_playerOne.getPlayer() != null) && !_playerOne.isDefaulted() && !_playerOne.isDisconnected() && (_playerOne.getPlayer().getOlympiadGameId() == _stadiumId))
|
||||
{
|
||||
@ -227,7 +227,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void portPlayersBack()
|
||||
protected void portPlayersBack()
|
||||
{
|
||||
if ((_playerOne.getPlayer() != null) && !_playerOne.isDefaulted() && !_playerOne.isDisconnected())
|
||||
{
|
||||
@ -240,7 +240,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void playersStatusBack()
|
||||
protected void playersStatusBack()
|
||||
{
|
||||
if ((_playerOne.getPlayer() != null) && !_playerOne.isDefaulted() && !_playerOne.isDisconnected() && (_playerOne.getPlayer().getOlympiadGameId() == _stadiumId))
|
||||
{
|
||||
@ -254,7 +254,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void clearPlayers()
|
||||
protected void clearPlayers()
|
||||
{
|
||||
_playerOne.setPlayer(null);
|
||||
_playerOne = null;
|
||||
@ -263,7 +263,7 @@ public abstract class OlympiadGameNormal extends AbstractOlympiadGame
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void handleDisconnect(Player player)
|
||||
protected void handleDisconnect(Player player)
|
||||
{
|
||||
if (player.getObjectId() == _playerOne.getObjectId())
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ public class OlympiadManager
|
||||
return _nonClassBasedRegisters.size() >= Config.ALT_OLY_NONCLASSED;
|
||||
}
|
||||
|
||||
protected final void clearRegistered()
|
||||
protected void clearRegistered()
|
||||
{
|
||||
_nonClassBasedRegisters.clear();
|
||||
_classBasedRegisters.clear();
|
||||
|
@ -53,7 +53,7 @@ public class ClanHallAuction
|
||||
loadBidder();
|
||||
}
|
||||
|
||||
private final void loadBidder()
|
||||
private void loadBidder()
|
||||
{
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(LOAD_CLANHALL_BIDDERS))
|
||||
|
@ -48,7 +48,7 @@ public abstract class ZoneForm
|
||||
|
||||
public abstract void visualizeZone(int z);
|
||||
|
||||
protected final void dropDebugItem(int itemId, int num, int x, int y, int z)
|
||||
protected void dropDebugItem(int itemId, int num, int x, int y, int z)
|
||||
{
|
||||
final Item item = new Item(IdManager.getInstance().getNextId(), itemId);
|
||||
item.setCount(num);
|
||||
|
@ -107,7 +107,7 @@ public class OlympiadStadiumZone extends ZoneRespawn
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void onEnter(Creature creature)
|
||||
protected void onEnter(Creature creature)
|
||||
{
|
||||
if ((getSettings().getOlympiadTask() != null) && getSettings().getOlympiadTask().isBattleStarted())
|
||||
{
|
||||
@ -143,7 +143,7 @@ public class OlympiadStadiumZone extends ZoneRespawn
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void onExit(Creature creature)
|
||||
protected void onExit(Creature creature)
|
||||
{
|
||||
if ((getSettings().getOlympiadTask() != null) && getSettings().getOlympiadTask().isBattleStarted())
|
||||
{
|
||||
@ -156,7 +156,7 @@ public class OlympiadStadiumZone extends ZoneRespawn
|
||||
}
|
||||
}
|
||||
|
||||
private static final class KickPlayer implements Runnable
|
||||
private static class KickPlayer implements Runnable
|
||||
{
|
||||
private Player _player;
|
||||
|
||||
|
@ -33363,7 +33363,7 @@ public class NpcStringId
|
||||
return "NS[" + getId() + ":" + getName() + "]";
|
||||
}
|
||||
|
||||
public static final class NSLocalisation
|
||||
public static class NSLocalisation
|
||||
{
|
||||
private final String _lang;
|
||||
private final Builder _builder;
|
||||
|
@ -14236,7 +14236,7 @@ public class SystemMessageId
|
||||
return "SM[" + getId() + ": " + getName() + "]";
|
||||
}
|
||||
|
||||
public static final class SMLocalisation
|
||||
public static class SMLocalisation
|
||||
{
|
||||
private final String _lang;
|
||||
private final Builder _builder;
|
||||
|
@ -200,7 +200,7 @@ public class RequestProcureCropList implements ClientPacket
|
||||
}
|
||||
}
|
||||
|
||||
private final class CropHolder extends UniqueItemHolder
|
||||
private class CropHolder extends UniqueItemHolder
|
||||
{
|
||||
private final int _manorId;
|
||||
private CropProcure _cp;
|
||||
|
@ -122,7 +122,7 @@ public class RequestRestartPoint implements ClientPacket
|
||||
portPlayer(player);
|
||||
}
|
||||
|
||||
protected final void portPlayer(Player player)
|
||||
protected void portPlayer(Player player)
|
||||
{
|
||||
Location loc = null;
|
||||
Instance instance = null;
|
||||
|
@ -69,7 +69,7 @@ public class ServerStatus extends WritablePacket
|
||||
public static final int ON = 0x01;
|
||||
public static final int OFF = 0x00;
|
||||
|
||||
static class Attribute
|
||||
private static class Attribute
|
||||
{
|
||||
public int id;
|
||||
public int value;
|
||||
|
@ -48,7 +48,7 @@ public class ExSubjobInfo extends ServerPacket
|
||||
}
|
||||
}
|
||||
|
||||
private final class SubInfo
|
||||
private class SubInfo
|
||||
{
|
||||
private final int _index;
|
||||
private final int _classId;
|
||||
|
@ -29,7 +29,7 @@ public class SkillList extends ServerPacket
|
||||
private final List<Skill> _skills = new ArrayList<>();
|
||||
private int _lastLearnedSkillId = 0;
|
||||
|
||||
static class Skill
|
||||
private static class Skill
|
||||
{
|
||||
public int id;
|
||||
public int reuseDelayGroup;
|
||||
|
@ -32,7 +32,7 @@ import javax.tools.StandardJavaFileManager;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
final class ScriptingFileManager implements StandardJavaFileManager
|
||||
public class ScriptingFileManager implements StandardJavaFileManager
|
||||
{
|
||||
private final StandardJavaFileManager _wrapped;
|
||||
private final LinkedList<ScriptingOutputFileObject> _classOutputs = new LinkedList<>();
|
||||
|
@ -31,7 +31,7 @@ import javax.tools.JavaFileObject;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
final class ScriptingOutputFileObject implements JavaFileObject
|
||||
public class ScriptingOutputFileObject implements JavaFileObject
|
||||
{
|
||||
private final Path _sourcePath;
|
||||
private final String _javaName;
|
||||
|
@ -250,7 +250,7 @@ public class Evolve
|
||||
return true;
|
||||
}
|
||||
|
||||
static final class EvolveFeedWait implements Runnable
|
||||
private static class EvolveFeedWait implements Runnable
|
||||
{
|
||||
private final Player _player;
|
||||
private final Pet _petSummon;
|
||||
@ -282,7 +282,7 @@ public class Evolve
|
||||
}
|
||||
}
|
||||
|
||||
static final class EvolveFinalizer implements Runnable
|
||||
private static class EvolveFinalizer implements Runnable
|
||||
{
|
||||
private final Player _player;
|
||||
private final Pet _petSummon;
|
||||
|
@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ExServerPrimitive;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class GeoUtils
|
||||
public class GeoUtils
|
||||
{
|
||||
public static void debug2DLine(Player player, int x, int y, int tx, int ty, int z)
|
||||
{
|
||||
|
@ -224,7 +224,7 @@ public class MinionList
|
||||
}
|
||||
}
|
||||
|
||||
private final void spawnMinion(int minionId)
|
||||
private void spawnMinion(int minionId)
|
||||
{
|
||||
if (minionId == 0)
|
||||
{
|
||||
@ -233,7 +233,7 @@ public class MinionList
|
||||
spawnMinion(_master, minionId);
|
||||
}
|
||||
|
||||
private final class MinionRespawnTask implements Runnable
|
||||
private class MinionRespawnTask implements Runnable
|
||||
{
|
||||
private final Monster _minion;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -514,7 +514,7 @@ public class Shutdown extends Thread
|
||||
* A simple class used to track down the estimated time of method executions.<br>
|
||||
* Once this class is created, it saves the start time, and when you want to get the estimated time, use the getEstimatedTime() method.
|
||||
*/
|
||||
private static final class TimeCounter
|
||||
private static class TimeCounter
|
||||
{
|
||||
private long _startTime;
|
||||
|
||||
|
@ -31,7 +31,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
/**
|
||||
* @author Sahar
|
||||
*/
|
||||
public final class PaperdollCache
|
||||
public class PaperdollCache
|
||||
{
|
||||
private final Set<Item> _paperdollItems = ConcurrentHashMap.newKeySet();
|
||||
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.cache;
|
||||
/**
|
||||
* @author Sahar
|
||||
*/
|
||||
public final class RelationCache
|
||||
public class RelationCache
|
||||
{
|
||||
private final int _relation;
|
||||
private final boolean _isAutoAttackable;
|
||||
|
@ -474,7 +474,7 @@ public class BotReportTable
|
||||
/**
|
||||
* Represents the info about a reporter
|
||||
*/
|
||||
private final class ReporterCharData
|
||||
private class ReporterCharData
|
||||
{
|
||||
private long _lastReport;
|
||||
private byte _reportPoints;
|
||||
@ -510,7 +510,7 @@ public class BotReportTable
|
||||
/**
|
||||
* Represents the info about a reported character
|
||||
*/
|
||||
private final class ReportedCharData
|
||||
private class ReportedCharData
|
||||
{
|
||||
Map<Integer, Long> _reporters;
|
||||
|
||||
@ -556,7 +556,7 @@ public class BotReportTable
|
||||
/**
|
||||
* SAX loader to parse /config/BotReportPunishments.xml file
|
||||
*/
|
||||
private final class PunishmentsLoader extends DefaultHandler
|
||||
private class PunishmentsLoader extends DefaultHandler
|
||||
{
|
||||
PunishmentsLoader()
|
||||
{
|
||||
@ -622,7 +622,7 @@ public class BotReportTable
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
static final BotReportTable INSTANCE = new BotReportTable();
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ public class CharNameTable
|
||||
}
|
||||
}
|
||||
|
||||
private final void addName(int objectId, String name)
|
||||
private void addName(int objectId, String name)
|
||||
{
|
||||
if ((name != null) && !name.equals(_chars.get(objectId)))
|
||||
{
|
||||
|
@ -71,7 +71,7 @@ public class SayuneData implements IXmlReader
|
||||
}
|
||||
}
|
||||
|
||||
private final void parseEntries(SayuneEntry lastEntry, Node n)
|
||||
private void parseEntries(SayuneEntry lastEntry, Node n)
|
||||
{
|
||||
NamedNodeMap attrs;
|
||||
for (Node d = n.getFirstChild(); d != null; d = d.getNextSibling())
|
||||
|
@ -386,7 +386,7 @@ public enum ClassId implements IIdentifiable
|
||||
return _nextClassIds;
|
||||
}
|
||||
|
||||
private final void addNextClassId(ClassId cId)
|
||||
private void addNextClassId(ClassId cId)
|
||||
{
|
||||
_nextClassIds.add(cId);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.geoengine.geodata;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class Cell
|
||||
public class Cell
|
||||
{
|
||||
/** East NSWE flag */
|
||||
public static final byte NSWE_EAST = 1 << 0;
|
||||
|
@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.regions.Region;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class GeoData
|
||||
public class GeoData
|
||||
{
|
||||
// world dimensions: 1048576 * 1048576 = 1099511627776
|
||||
private static final int WORLD_MIN_X = -655360;
|
||||
|
@ -23,7 +23,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.IBlock;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class ComplexBlock implements IBlock
|
||||
public class ComplexBlock implements IBlock
|
||||
{
|
||||
private final short[] _data;
|
||||
|
||||
|
@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.IRegion;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class NullRegion implements IRegion
|
||||
public class NullRegion implements IRegion
|
||||
{
|
||||
public static final NullRegion INSTANCE = new NullRegion();
|
||||
|
||||
|
@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.geoengine.geodata.blocks.MultilayerBlock;
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public final class Region implements IRegion
|
||||
public class Region implements IRegion
|
||||
{
|
||||
private final IBlock[] _blocks = new IBlock[IRegion.REGION_BLOCKS];
|
||||
|
||||
|
@ -85,7 +85,7 @@ public class CellNodeBuffer
|
||||
return null;
|
||||
}
|
||||
|
||||
public final void free()
|
||||
public void free()
|
||||
{
|
||||
_current = null;
|
||||
|
||||
@ -136,7 +136,7 @@ public class CellNodeBuffer
|
||||
return result;
|
||||
}
|
||||
|
||||
private final void getNeighbors()
|
||||
private void getNeighbors()
|
||||
{
|
||||
if (_current.getLoc().canGoNone())
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ public class ConditionHandler
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final ConditionHandler INSTANCE = new ConditionHandler();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class EffectHandler
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final EffectHandler INSTANCE = new EffectHandler();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class SkillConditionHandler
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SingletonHolder
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final SkillConditionHandler INSTANCE = new SkillConditionHandler();
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ public class PetData
|
||||
return _skills;
|
||||
}
|
||||
|
||||
public static final class PetSkillLearn extends SkillHolder
|
||||
public static class PetSkillLearn extends SkillHolder
|
||||
{
|
||||
private final int _minLevel;
|
||||
|
||||
|
@ -86,7 +86,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
||||
* Sets the instance type.
|
||||
* @param newInstanceType the instance type to set
|
||||
*/
|
||||
protected final void setInstanceType(InstanceType newInstanceType)
|
||||
protected void setInstanceType(InstanceType newInstanceType)
|
||||
{
|
||||
_instanceType = newInstanceType;
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ public class Attackable extends Npc
|
||||
return true;
|
||||
}
|
||||
|
||||
static class PartyContainer
|
||||
private static class PartyContainer
|
||||
{
|
||||
public Party party;
|
||||
public long damage;
|
||||
|
@ -2205,7 +2205,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
return _isRunning;
|
||||
}
|
||||
|
||||
private final void setRunning(boolean value)
|
||||
private void setRunning(boolean value)
|
||||
{
|
||||
if (_isRunning == value)
|
||||
{
|
||||
@ -2396,7 +2396,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
* When a new instance of Creature is spawned, server just create a link between the instance and the template This link is stored in <b>_template</b>.
|
||||
* @param template
|
||||
*/
|
||||
protected final void setTemplate(CreatureTemplate template)
|
||||
protected void setTemplate(CreatureTemplate template)
|
||||
{
|
||||
_template = template;
|
||||
}
|
||||
@ -5657,7 +5657,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
return MoveType.STANDING;
|
||||
}
|
||||
|
||||
protected final void computeStatusUpdate(StatusUpdate su, StatusUpdateType type)
|
||||
protected void computeStatusUpdate(StatusUpdate su, StatusUpdateType type)
|
||||
{
|
||||
final int newValue = type.getValue(this);
|
||||
_statusUpdates.compute(type, (key, oldValue) ->
|
||||
@ -5671,7 +5671,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
});
|
||||
}
|
||||
|
||||
protected final void addStatusUpdateValue(StatusUpdateType type)
|
||||
protected void addStatusUpdateValue(StatusUpdateType type)
|
||||
{
|
||||
_statusUpdates.put(type, type.getValue(this));
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ public class ControllableAirShip extends AirShip
|
||||
}
|
||||
}
|
||||
|
||||
protected final class ConsumeFuelTask implements Runnable
|
||||
protected class ConsumeFuelTask implements Runnable
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
@ -317,7 +317,7 @@ public class ControllableAirShip extends AirShip
|
||||
}
|
||||
}
|
||||
|
||||
protected final class CheckTask implements Runnable
|
||||
protected class CheckTask implements Runnable
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
@ -330,7 +330,7 @@ public class ControllableAirShip extends AirShip
|
||||
}
|
||||
}
|
||||
|
||||
protected final class DecayTask implements Runnable
|
||||
protected class DecayTask implements Runnable
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
|
@ -56,7 +56,7 @@ public class FortDoorman extends Doorman
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void openDoors(Player player, String command)
|
||||
protected void openDoors(Player player, String command)
|
||||
{
|
||||
final StringTokenizer st = new StringTokenizer(command.substring(10), ", ");
|
||||
st.nextToken();
|
||||
@ -68,7 +68,7 @@ public class FortDoorman extends Doorman
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void closeDoors(Player player, String command)
|
||||
protected void closeDoors(Player player, String command)
|
||||
{
|
||||
final StringTokenizer st = new StringTokenizer(command.substring(11), ", ");
|
||||
st.nextToken();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user