Proper modifier order and removal if implied by their context.
This commit is contained in:
parent
61b336acb9
commit
a5b69096dd
@ -18,7 +18,7 @@ package com.l2jmobius.listeners;
|
||||
|
||||
public interface FormatListener
|
||||
{
|
||||
public String decode(String var1);
|
||||
String decode(String var1);
|
||||
|
||||
public String encode(String var1);
|
||||
String encode(String var1);
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public final class SelMahumDrill extends AbstractNpcAI
|
||||
// Chiefs event broadcast range
|
||||
private static final int TRAINING_RANGE = 1000;
|
||||
|
||||
private static enum Actions
|
||||
private enum Actions
|
||||
{
|
||||
SCE_TRAINING_ACTION_A(4, -1, 2, 2333),
|
||||
SCE_TRAINING_ACTION_B(1, -1, 2, 4333),
|
||||
|
@ -85,7 +85,7 @@ public class Lindvior extends AbstractNpcAI
|
||||
private static final int LIONEL_HUNTER = 33886;
|
||||
private static final int LINDVIOR_CAMERA = 19428;
|
||||
// Zone
|
||||
private final static int ZONE_ID = 12107;
|
||||
private static final int ZONE_ID = 12107;
|
||||
static final Location CENTER_LOCATION = new Location(46424, -26200, -1400);
|
||||
// Skills
|
||||
private static final SkillHolder SKILL_RECHARGE_POSIBLE = new SkillHolder(15605, 1);
|
||||
|
@ -48,15 +48,15 @@ public class LindviorBoss extends AbstractNpcAI
|
||||
private static final SkillHolder TORNADO = new SkillHolder(15275, 1);
|
||||
private static final SkillHolder LINDVIORS_ATTACK = new SkillHolder(15600, 1);
|
||||
// Chances
|
||||
private final static int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private final static int CHANCE_WIND_PULL = 4;
|
||||
private final static int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private final static int CHANCE_BODY_SLAM = 2;
|
||||
private final static int CHANCE_SOAR = 8;
|
||||
private final static int CHANCE_WIND_BREAT = 3;
|
||||
private final static int CHANCE_TAIL_SWIPE = 5;
|
||||
private final static int CHANCE_TORNADO = 6;
|
||||
private final static int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
private static final int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private static final int CHANCE_WIND_PULL = 4;
|
||||
private static final int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private static final int CHANCE_BODY_SLAM = 2;
|
||||
private static final int CHANCE_SOAR = 8;
|
||||
private static final int CHANCE_WIND_BREAT = 3;
|
||||
private static final int CHANCE_TAIL_SWIPE = 5;
|
||||
private static final int CHANCE_TORNADO = 6;
|
||||
private static final int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
|
||||
public LindviorBoss()
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public final class Sailren extends AbstractNpcAI
|
||||
private static int _killCount = 0;
|
||||
private static long _lastAttack = 0;
|
||||
|
||||
private static enum Status
|
||||
private enum Status
|
||||
{
|
||||
ALIVE,
|
||||
IN_FIGHT,
|
||||
|
@ -177,7 +177,7 @@ public final class Elpies extends Event
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
private static enum EventLocation
|
||||
private enum EventLocation
|
||||
{
|
||||
ADEN("Aden", 146558, 148341, 26622, 28560, -2200),
|
||||
DION("Dion", 18564, 19200, 144377, 145782, -3081),
|
||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
*/
|
||||
public class Q00350_EnhanceYourWeapon extends Quest
|
||||
{
|
||||
private static enum AbsorbCrystalType
|
||||
private enum AbsorbCrystalType
|
||||
{
|
||||
LAST_HIT,
|
||||
FULL_PARTY,
|
||||
|
@ -191,7 +191,7 @@ public final class Rnd
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
public static enum RandomType
|
||||
public enum RandomType
|
||||
{
|
||||
/**
|
||||
* For best random quality.
|
||||
|
@ -151,7 +151,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -161,7 +161,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -196,7 +196,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -206,7 +206,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -55,7 +55,7 @@ public class DBSpawnManager
|
||||
protected final Map<Integer, StatsSet> _storedInfo = new ConcurrentHashMap<>();
|
||||
protected final Map<Integer, ScheduledFuture<?>> _schedules = new ConcurrentHashMap<>();
|
||||
|
||||
public static enum DBStatusType
|
||||
public enum DBStatusType
|
||||
{
|
||||
ALIVE,
|
||||
DEAD,
|
||||
|
@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.instancemanager;
|
||||
*/
|
||||
public class PlayerCountManager
|
||||
{
|
||||
private volatile static int connectedCount = 0;
|
||||
private volatile static int maxConnectedCount = 0;
|
||||
private volatile static int offlineTradeCount = 0;
|
||||
private static volatile int connectedCount = 0;
|
||||
private static volatile int maxConnectedCount = 0;
|
||||
private static volatile int offlineTradeCount = 0;
|
||||
|
||||
protected PlayerCountManager()
|
||||
{
|
||||
|
@ -831,8 +831,8 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
|
||||
// Training Camp
|
||||
private final static String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private final static String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
private static final String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private static final String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
|
||||
// Save responder name for log it
|
||||
private String _lastPetitionGmName = null;
|
||||
|
@ -62,7 +62,7 @@ public class HpCondition implements ICubicCondition
|
||||
return getClass().getSimpleName() + " chance: " + _hpPer;
|
||||
}
|
||||
|
||||
public static enum HpConditionType
|
||||
public enum HpConditionType
|
||||
{
|
||||
GREATER,
|
||||
LESSER;
|
||||
|
@ -26,11 +26,11 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
*/
|
||||
public class LuckyGameDataHolder
|
||||
{
|
||||
final private int _index;
|
||||
final private int _turningPoints;
|
||||
final private List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
final private List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
final private List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private final int _index;
|
||||
private final int _turningPoints;
|
||||
private final List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
private final List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
private final List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private int _minModifyRewardGame;
|
||||
private int _maxModifyRewardGame;
|
||||
|
||||
|
@ -62,22 +62,22 @@ public class Gui
|
||||
{
|
||||
JTextArea txtrConsole;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] abortOptions =
|
||||
static final String[] abortOptions =
|
||||
{
|
||||
"Abort",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] confirmOptions =
|
||||
static final String[] confirmOptions =
|
||||
{
|
||||
"Confirm",
|
||||
"Cancel"
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
final static long startTime = System.currentTimeMillis();
|
||||
static final long startTime = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -695,8 +695,8 @@ public final class Util
|
||||
{
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
try (InputStream in = new FileInputStream(file);
|
||||
final InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
final BufferedReader buffer = new BufferedReader(reader))
|
||||
InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
BufferedReader buffer = new BufferedReader(reader))
|
||||
{
|
||||
String line;
|
||||
while ((line = buffer.readLine()) != null)
|
||||
|
@ -511,7 +511,7 @@ public class SchedulingPattern
|
||||
/**
|
||||
* Definition for a value parser.
|
||||
*/
|
||||
private static interface ValueParser
|
||||
private interface ValueParser
|
||||
{
|
||||
/**
|
||||
* Attempts to parse a value.
|
||||
|
@ -61,12 +61,12 @@ public class Gui
|
||||
JCheckBoxMenuItem chckbxmntmDisabled;
|
||||
JCheckBoxMenuItem chckbxmntmGmOnly;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
|
@ -37,7 +37,7 @@ import javax.swing.WindowConstants;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -77,7 +77,7 @@ public final class SelMahumDrill extends AbstractNpcAI
|
||||
// Chiefs event broadcast range
|
||||
private static final int TRAINING_RANGE = 1000;
|
||||
|
||||
private static enum Actions
|
||||
private enum Actions
|
||||
{
|
||||
SCE_TRAINING_ACTION_A(4, -1, 2, 2333),
|
||||
SCE_TRAINING_ACTION_B(1, -1, 2, 4333),
|
||||
|
@ -85,7 +85,7 @@ public class Lindvior extends AbstractNpcAI
|
||||
private static final int LIONEL_HUNTER = 33886;
|
||||
private static final int LINDVIOR_CAMERA = 19428;
|
||||
// Zone
|
||||
private final static int ZONE_ID = 12107;
|
||||
private static final int ZONE_ID = 12107;
|
||||
static final Location CENTER_LOCATION = new Location(46424, -26200, -1400);
|
||||
// Skills
|
||||
private static final SkillHolder SKILL_RECHARGE_POSIBLE = new SkillHolder(15605, 1);
|
||||
|
@ -48,15 +48,15 @@ public class LindviorBoss extends AbstractNpcAI
|
||||
private static final SkillHolder TORNADO = new SkillHolder(15275, 1);
|
||||
private static final SkillHolder LINDVIORS_ATTACK = new SkillHolder(15600, 1);
|
||||
// Chances
|
||||
private final static int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private final static int CHANCE_WIND_PULL = 4;
|
||||
private final static int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private final static int CHANCE_BODY_SLAM = 2;
|
||||
private final static int CHANCE_SOAR = 8;
|
||||
private final static int CHANCE_WIND_BREAT = 3;
|
||||
private final static int CHANCE_TAIL_SWIPE = 5;
|
||||
private final static int CHANCE_TORNADO = 6;
|
||||
private final static int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
private static final int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private static final int CHANCE_WIND_PULL = 4;
|
||||
private static final int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private static final int CHANCE_BODY_SLAM = 2;
|
||||
private static final int CHANCE_SOAR = 8;
|
||||
private static final int CHANCE_WIND_BREAT = 3;
|
||||
private static final int CHANCE_TAIL_SWIPE = 5;
|
||||
private static final int CHANCE_TORNADO = 6;
|
||||
private static final int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
|
||||
public LindviorBoss()
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public final class Sailren extends AbstractNpcAI
|
||||
private static int _killCount = 0;
|
||||
private static long _lastAttack = 0;
|
||||
|
||||
private static enum Status
|
||||
private enum Status
|
||||
{
|
||||
ALIVE,
|
||||
IN_FIGHT,
|
||||
|
@ -177,7 +177,7 @@ public final class Elpies extends Event
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
private static enum EventLocation
|
||||
private enum EventLocation
|
||||
{
|
||||
ADEN("Aden", 146558, 148341, 26622, 28560, -2200),
|
||||
DION("Dion", 18564, 19200, 144377, 145782, -3081),
|
||||
|
@ -191,7 +191,7 @@ public final class Rnd
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
public static enum RandomType
|
||||
public enum RandomType
|
||||
{
|
||||
/**
|
||||
* For best random quality.
|
||||
|
@ -151,7 +151,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -161,7 +161,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -196,7 +196,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -206,7 +206,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -55,7 +55,7 @@ public class DBSpawnManager
|
||||
protected final Map<Integer, StatsSet> _storedInfo = new ConcurrentHashMap<>();
|
||||
protected final Map<Integer, ScheduledFuture<?>> _schedules = new ConcurrentHashMap<>();
|
||||
|
||||
public static enum DBStatusType
|
||||
public enum DBStatusType
|
||||
{
|
||||
ALIVE,
|
||||
DEAD,
|
||||
|
@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.instancemanager;
|
||||
*/
|
||||
public class PlayerCountManager
|
||||
{
|
||||
private volatile static int connectedCount = 0;
|
||||
private volatile static int maxConnectedCount = 0;
|
||||
private volatile static int offlineTradeCount = 0;
|
||||
private static volatile int connectedCount = 0;
|
||||
private static volatile int maxConnectedCount = 0;
|
||||
private static volatile int offlineTradeCount = 0;
|
||||
|
||||
protected PlayerCountManager()
|
||||
{
|
||||
|
@ -833,12 +833,12 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
|
||||
// Training Camp
|
||||
private final static String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private final static String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
private static final String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private static final String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
|
||||
// Attendance Reward system
|
||||
private final static String ATTENDANCE_DATE_VAR = "ATTENDANCE_DATE";
|
||||
private final static String ATTENDANCE_INDEX_VAR = "ATTENDANCE_INDEX";
|
||||
private static final String ATTENDANCE_DATE_VAR = "ATTENDANCE_DATE";
|
||||
private static final String ATTENDANCE_INDEX_VAR = "ATTENDANCE_INDEX";
|
||||
|
||||
// Save responder name for log it
|
||||
private String _lastPetitionGmName = null;
|
||||
|
@ -62,7 +62,7 @@ public class HpCondition implements ICubicCondition
|
||||
return getClass().getSimpleName() + " chance: " + _hpPer;
|
||||
}
|
||||
|
||||
public static enum HpConditionType
|
||||
public enum HpConditionType
|
||||
{
|
||||
GREATER,
|
||||
LESSER;
|
||||
|
@ -26,11 +26,11 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
*/
|
||||
public class LuckyGameDataHolder
|
||||
{
|
||||
final private int _index;
|
||||
final private int _turningPoints;
|
||||
final private List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
final private List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
final private List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private final int _index;
|
||||
private final int _turningPoints;
|
||||
private final List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
private final List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
private final List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private int _minModifyRewardGame;
|
||||
private int _maxModifyRewardGame;
|
||||
|
||||
|
@ -62,22 +62,22 @@ public class Gui
|
||||
{
|
||||
JTextArea txtrConsole;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] abortOptions =
|
||||
static final String[] abortOptions =
|
||||
{
|
||||
"Abort",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] confirmOptions =
|
||||
static final String[] confirmOptions =
|
||||
{
|
||||
"Confirm",
|
||||
"Cancel"
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
final static long startTime = System.currentTimeMillis();
|
||||
static final long startTime = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -695,8 +695,8 @@ public final class Util
|
||||
{
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
try (InputStream in = new FileInputStream(file);
|
||||
final InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
final BufferedReader buffer = new BufferedReader(reader))
|
||||
InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
BufferedReader buffer = new BufferedReader(reader))
|
||||
{
|
||||
String line;
|
||||
while ((line = buffer.readLine()) != null)
|
||||
|
@ -511,7 +511,7 @@ public class SchedulingPattern
|
||||
/**
|
||||
* Definition for a value parser.
|
||||
*/
|
||||
private static interface ValueParser
|
||||
private interface ValueParser
|
||||
{
|
||||
/**
|
||||
* Attempts to parse a value.
|
||||
|
@ -61,12 +61,12 @@ public class Gui
|
||||
JCheckBoxMenuItem chckbxmntmDisabled;
|
||||
JCheckBoxMenuItem chckbxmntmGmOnly;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
|
@ -37,7 +37,7 @@ import javax.swing.WindowConstants;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -77,7 +77,7 @@ public final class SelMahumDrill extends AbstractNpcAI
|
||||
// Chiefs event broadcast range
|
||||
private static final int TRAINING_RANGE = 1000;
|
||||
|
||||
private static enum Actions
|
||||
private enum Actions
|
||||
{
|
||||
SCE_TRAINING_ACTION_A(4, -1, 2, 2333),
|
||||
SCE_TRAINING_ACTION_B(1, -1, 2, 4333),
|
||||
|
@ -41,7 +41,7 @@ public class Helios extends AbstractNpcAI
|
||||
// Location
|
||||
private static final Location HELIOS_SPAWN_LOC = new Location(92771, 161909, 3494, 38329);
|
||||
// Zone
|
||||
private final static int ZONE_ID = 210109;
|
||||
private static final int ZONE_ID = 210109;
|
||||
// Status
|
||||
private static final int ALIVE = 0;
|
||||
private static final int WAITING = 1;
|
||||
|
@ -85,7 +85,7 @@ public class Lindvior extends AbstractNpcAI
|
||||
private static final int LIONEL_HUNTER = 33886;
|
||||
private static final int LINDVIOR_CAMERA = 19428;
|
||||
// Zone
|
||||
private final static int ZONE_ID = 12107;
|
||||
private static final int ZONE_ID = 12107;
|
||||
static final Location CENTER_LOCATION = new Location(46424, -26200, -1400);
|
||||
// Skills
|
||||
private static final SkillHolder SKILL_RECHARGE_POSIBLE = new SkillHolder(15605, 1);
|
||||
|
@ -48,15 +48,15 @@ public class LindviorBoss extends AbstractNpcAI
|
||||
private static final SkillHolder TORNADO = new SkillHolder(15275, 1);
|
||||
private static final SkillHolder LINDVIORS_ATTACK = new SkillHolder(15600, 1);
|
||||
// Chances
|
||||
private final static int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private final static int CHANCE_WIND_PULL = 4;
|
||||
private final static int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private final static int CHANCE_BODY_SLAM = 2;
|
||||
private final static int CHANCE_SOAR = 8;
|
||||
private final static int CHANCE_WIND_BREAT = 3;
|
||||
private final static int CHANCE_TAIL_SWIPE = 5;
|
||||
private final static int CHANCE_TORNADO = 6;
|
||||
private final static int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
private static final int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private static final int CHANCE_WIND_PULL = 4;
|
||||
private static final int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private static final int CHANCE_BODY_SLAM = 2;
|
||||
private static final int CHANCE_SOAR = 8;
|
||||
private static final int CHANCE_WIND_BREAT = 3;
|
||||
private static final int CHANCE_TAIL_SWIPE = 5;
|
||||
private static final int CHANCE_TORNADO = 6;
|
||||
private static final int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
|
||||
public LindviorBoss()
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public final class Sailren extends AbstractNpcAI
|
||||
private static int _killCount = 0;
|
||||
private static long _lastAttack = 0;
|
||||
|
||||
private static enum Status
|
||||
private enum Status
|
||||
{
|
||||
ALIVE,
|
||||
IN_FIGHT,
|
||||
|
@ -177,7 +177,7 @@ public final class Elpies extends Event
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
private static enum EventLocation
|
||||
private enum EventLocation
|
||||
{
|
||||
ADEN("Aden", 146558, 148341, 26622, 28560, -2200),
|
||||
DION("Dion", 18564, 19200, 144377, 145782, -3081),
|
||||
|
@ -191,7 +191,7 @@ public final class Rnd
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
public static enum RandomType
|
||||
public enum RandomType
|
||||
{
|
||||
/**
|
||||
* For best random quality.
|
||||
|
@ -151,7 +151,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -161,7 +161,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -196,7 +196,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -206,7 +206,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -55,7 +55,7 @@ public class DBSpawnManager
|
||||
protected final Map<Integer, StatsSet> _storedInfo = new ConcurrentHashMap<>();
|
||||
protected final Map<Integer, ScheduledFuture<?>> _schedules = new ConcurrentHashMap<>();
|
||||
|
||||
public static enum DBStatusType
|
||||
public enum DBStatusType
|
||||
{
|
||||
ALIVE,
|
||||
DEAD,
|
||||
|
@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.instancemanager;
|
||||
*/
|
||||
public class PlayerCountManager
|
||||
{
|
||||
private volatile static int connectedCount = 0;
|
||||
private volatile static int maxConnectedCount = 0;
|
||||
private volatile static int offlineTradeCount = 0;
|
||||
private static volatile int connectedCount = 0;
|
||||
private static volatile int maxConnectedCount = 0;
|
||||
private static volatile int offlineTradeCount = 0;
|
||||
|
||||
protected PlayerCountManager()
|
||||
{
|
||||
|
@ -835,12 +835,12 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
|
||||
// Training Camp
|
||||
private final static String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private final static String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
private static final String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private static final String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
|
||||
// Attendance Reward system
|
||||
private final static String ATTENDANCE_DATE_VAR = "ATTENDANCE_DATE";
|
||||
private final static String ATTENDANCE_INDEX_VAR = "ATTENDANCE_INDEX";
|
||||
private static final String ATTENDANCE_DATE_VAR = "ATTENDANCE_DATE";
|
||||
private static final String ATTENDANCE_INDEX_VAR = "ATTENDANCE_INDEX";
|
||||
|
||||
// Save responder name for log it
|
||||
private String _lastPetitionGmName = null;
|
||||
|
@ -62,7 +62,7 @@ public class HpCondition implements ICubicCondition
|
||||
return getClass().getSimpleName() + " chance: " + _hpPer;
|
||||
}
|
||||
|
||||
public static enum HpConditionType
|
||||
public enum HpConditionType
|
||||
{
|
||||
GREATER,
|
||||
LESSER;
|
||||
|
@ -26,11 +26,11 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
*/
|
||||
public class LuckyGameDataHolder
|
||||
{
|
||||
final private int _index;
|
||||
final private int _turningPoints;
|
||||
final private List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
final private List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
final private List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private final int _index;
|
||||
private final int _turningPoints;
|
||||
private final List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
private final List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
private final List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private int _minModifyRewardGame;
|
||||
private int _maxModifyRewardGame;
|
||||
|
||||
|
@ -62,22 +62,22 @@ public class Gui
|
||||
{
|
||||
JTextArea txtrConsole;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] abortOptions =
|
||||
static final String[] abortOptions =
|
||||
{
|
||||
"Abort",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] confirmOptions =
|
||||
static final String[] confirmOptions =
|
||||
{
|
||||
"Confirm",
|
||||
"Cancel"
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
final static long startTime = System.currentTimeMillis();
|
||||
static final long startTime = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -695,8 +695,8 @@ public final class Util
|
||||
{
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
try (InputStream in = new FileInputStream(file);
|
||||
final InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
final BufferedReader buffer = new BufferedReader(reader))
|
||||
InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
BufferedReader buffer = new BufferedReader(reader))
|
||||
{
|
||||
String line;
|
||||
while ((line = buffer.readLine()) != null)
|
||||
|
@ -511,7 +511,7 @@ public class SchedulingPattern
|
||||
/**
|
||||
* Definition for a value parser.
|
||||
*/
|
||||
private static interface ValueParser
|
||||
private interface ValueParser
|
||||
{
|
||||
/**
|
||||
* Attempts to parse a value.
|
||||
|
@ -61,12 +61,12 @@ public class Gui
|
||||
JCheckBoxMenuItem chckbxmntmDisabled;
|
||||
JCheckBoxMenuItem chckbxmntmGmOnly;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
|
@ -37,7 +37,7 @@ import javax.swing.WindowConstants;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -77,7 +77,7 @@ public final class SelMahumDrill extends AbstractNpcAI
|
||||
// Chiefs event broadcast range
|
||||
private static final int TRAINING_RANGE = 1000;
|
||||
|
||||
private static enum Actions
|
||||
private enum Actions
|
||||
{
|
||||
SCE_TRAINING_ACTION_A(4, -1, 2, 2333),
|
||||
SCE_TRAINING_ACTION_B(1, -1, 2, 4333),
|
||||
|
@ -41,7 +41,7 @@ public class Helios extends AbstractNpcAI
|
||||
// Location
|
||||
private static final Location HELIOS_SPAWN_LOC = new Location(92771, 161909, 3494, 38329);
|
||||
// Zone
|
||||
private final static int ZONE_ID = 210109;
|
||||
private static final int ZONE_ID = 210109;
|
||||
// Status
|
||||
private static final int ALIVE = 0;
|
||||
private static final int WAITING = 1;
|
||||
|
@ -85,7 +85,7 @@ public class Lindvior extends AbstractNpcAI
|
||||
private static final int LIONEL_HUNTER = 33886;
|
||||
private static final int LINDVIOR_CAMERA = 19428;
|
||||
// Zone
|
||||
private final static int ZONE_ID = 12107;
|
||||
private static final int ZONE_ID = 12107;
|
||||
static final Location CENTER_LOCATION = new Location(46424, -26200, -1400);
|
||||
// Skills
|
||||
private static final SkillHolder SKILL_RECHARGE_POSIBLE = new SkillHolder(15605, 1);
|
||||
|
@ -48,15 +48,15 @@ public class LindviorBoss extends AbstractNpcAI
|
||||
private static final SkillHolder TORNADO = new SkillHolder(15275, 1);
|
||||
private static final SkillHolder LINDVIORS_ATTACK = new SkillHolder(15600, 1);
|
||||
// Chances
|
||||
private final static int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private final static int CHANCE_WIND_PULL = 4;
|
||||
private final static int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private final static int CHANCE_BODY_SLAM = 2;
|
||||
private final static int CHANCE_SOAR = 8;
|
||||
private final static int CHANCE_WIND_BREAT = 3;
|
||||
private final static int CHANCE_TAIL_SWIPE = 5;
|
||||
private final static int CHANCE_TORNADO = 6;
|
||||
private final static int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
private static final int CHANCE_MIGHTY_WIND_STRIKE = 9;
|
||||
private static final int CHANCE_WIND_PULL = 4;
|
||||
private static final int CHANCE_LINDVIORS_JUMP = 7;
|
||||
private static final int CHANCE_BODY_SLAM = 2;
|
||||
private static final int CHANCE_SOAR = 8;
|
||||
private static final int CHANCE_WIND_BREAT = 3;
|
||||
private static final int CHANCE_TAIL_SWIPE = 5;
|
||||
private static final int CHANCE_TORNADO = 6;
|
||||
private static final int CHANCE_LINDVIORS_ATTACK = 1;
|
||||
|
||||
public LindviorBoss()
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public final class Sailren extends AbstractNpcAI
|
||||
private static int _killCount = 0;
|
||||
private static long _lastAttack = 0;
|
||||
|
||||
private static enum Status
|
||||
private enum Status
|
||||
{
|
||||
ALIVE,
|
||||
IN_FIGHT,
|
||||
|
@ -177,7 +177,7 @@ public final class Elpies extends Event
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
private static enum EventLocation
|
||||
private enum EventLocation
|
||||
{
|
||||
ADEN("Aden", 146558, 148341, 26622, 28560, -2200),
|
||||
DION("Dion", 18564, 19200, 144377, 145782, -3081),
|
||||
|
@ -191,7 +191,7 @@ public final class Rnd
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
public static enum RandomType
|
||||
public enum RandomType
|
||||
{
|
||||
/**
|
||||
* For best random quality.
|
||||
|
@ -151,7 +151,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -161,7 +161,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -196,7 +196,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -206,7 +206,7 @@ public final class BlockMultilayerDynamic extends BlockMultilayer implements IBl
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
@ -55,7 +55,7 @@ public class DBSpawnManager
|
||||
protected final Map<Integer, StatsSet> _storedInfo = new ConcurrentHashMap<>();
|
||||
protected final Map<Integer, ScheduledFuture<?>> _schedules = new ConcurrentHashMap<>();
|
||||
|
||||
public static enum DBStatusType
|
||||
public enum DBStatusType
|
||||
{
|
||||
ALIVE,
|
||||
DEAD,
|
||||
|
@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.instancemanager;
|
||||
*/
|
||||
public class PlayerCountManager
|
||||
{
|
||||
private volatile static int connectedCount = 0;
|
||||
private volatile static int maxConnectedCount = 0;
|
||||
private volatile static int offlineTradeCount = 0;
|
||||
private static volatile int connectedCount = 0;
|
||||
private static volatile int maxConnectedCount = 0;
|
||||
private static volatile int offlineTradeCount = 0;
|
||||
|
||||
protected PlayerCountManager()
|
||||
{
|
||||
|
@ -842,16 +842,16 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
|
||||
// Monster Book variables
|
||||
private final static String MONSTER_BOOK_KILLS_VAR = "MONSTER_BOOK_KILLS_";
|
||||
private final static String MONSTER_BOOK_LEVEL_VAR = "MONSTER_BOOK_LEVEL_";
|
||||
private static final String MONSTER_BOOK_KILLS_VAR = "MONSTER_BOOK_KILLS_";
|
||||
private static final String MONSTER_BOOK_LEVEL_VAR = "MONSTER_BOOK_LEVEL_";
|
||||
|
||||
// Training Camp
|
||||
private final static String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private final static String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
private static final String TRAINING_CAMP_VAR = "TRAINING_CAMP";
|
||||
private static final String TRAINING_CAMP_DURATION = "TRAINING_CAMP_DURATION";
|
||||
|
||||
// Attendance Reward system
|
||||
private final static String ATTENDANCE_DATE_VAR = "ATTENDANCE_DATE";
|
||||
private final static String ATTENDANCE_INDEX_VAR = "ATTENDANCE_INDEX";
|
||||
private static final String ATTENDANCE_DATE_VAR = "ATTENDANCE_DATE";
|
||||
private static final String ATTENDANCE_INDEX_VAR = "ATTENDANCE_INDEX";
|
||||
|
||||
// Save responder name for log it
|
||||
private String _lastPetitionGmName = null;
|
||||
|
@ -62,7 +62,7 @@ public class HpCondition implements ICubicCondition
|
||||
return getClass().getSimpleName() + " chance: " + _hpPer;
|
||||
}
|
||||
|
||||
public static enum HpConditionType
|
||||
public enum HpConditionType
|
||||
{
|
||||
GREATER,
|
||||
LESSER;
|
||||
|
@ -26,11 +26,11 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
*/
|
||||
public class LuckyGameDataHolder
|
||||
{
|
||||
final private int _index;
|
||||
final private int _turningPoints;
|
||||
final private List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
final private List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
final private List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private final int _index;
|
||||
private final int _turningPoints;
|
||||
private final List<ItemChanceHolder> _commonRewards = new ArrayList<>();
|
||||
private final List<ItemPointHolder> _uniqueRewards = new ArrayList<>();
|
||||
private final List<ItemChanceHolder> _modifyRewards = new ArrayList<>();
|
||||
private int _minModifyRewardGame;
|
||||
private int _maxModifyRewardGame;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class ExOneDayReceiveRewardList implements IClientOutgoingPacket
|
||||
{
|
||||
final L2PcInstance _player;
|
||||
private final Collection<DailyMissionDataHolder> _rewards;
|
||||
private final static Function<String, Long> _remainTime = pattern -> (new Predictor(pattern).nextMatchingTime() - System.currentTimeMillis()) / 1000L;
|
||||
private static final Function<String, Long> _remainTime = pattern -> (new Predictor(pattern).nextMatchingTime() - System.currentTimeMillis()) / 1000L;
|
||||
|
||||
private final long _dayRemainTime;
|
||||
private final long _weekRemainTime;
|
||||
|
@ -62,22 +62,22 @@ public class Gui
|
||||
{
|
||||
JTextArea txtrConsole;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] abortOptions =
|
||||
static final String[] abortOptions =
|
||||
{
|
||||
"Abort",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] confirmOptions =
|
||||
static final String[] confirmOptions =
|
||||
{
|
||||
"Confirm",
|
||||
"Cancel"
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
final static long startTime = System.currentTimeMillis();
|
||||
static final long startTime = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -695,8 +695,8 @@ public final class Util
|
||||
{
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
try (InputStream in = new FileInputStream(file);
|
||||
final InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
final BufferedReader buffer = new BufferedReader(reader))
|
||||
InputStreamReader reader = new InputStreamReader(in, cs);
|
||||
BufferedReader buffer = new BufferedReader(reader))
|
||||
{
|
||||
String line;
|
||||
while ((line = buffer.readLine()) != null)
|
||||
|
@ -511,7 +511,7 @@ public class SchedulingPattern
|
||||
/**
|
||||
* Definition for a value parser.
|
||||
*/
|
||||
private static interface ValueParser
|
||||
private interface ValueParser
|
||||
{
|
||||
/**
|
||||
* Attempts to parse a value.
|
||||
|
@ -61,12 +61,12 @@ public class Gui
|
||||
JCheckBoxMenuItem chckbxmntmDisabled;
|
||||
JCheckBoxMenuItem chckbxmntmGmOnly;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
|
@ -37,7 +37,7 @@ import javax.swing.WindowConstants;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -117,7 +117,7 @@ public class KetraOrcSupport extends Quest
|
||||
// Haste: Requires 6 Buffalo Horns
|
||||
};
|
||||
|
||||
private final static L2Skill VARKA_KETRA_PETRIFICATION = SkillTable.getInstance().getInfo(4578, 1);
|
||||
private static final L2Skill VARKA_KETRA_PETRIFICATION = SkillTable.getInstance().getInfo(4578, 1);
|
||||
|
||||
/**
|
||||
* Names of missions which will be automatically dropped if the alliance is broken.
|
||||
|
@ -116,7 +116,7 @@ public class VarkaSilenosSupport extends Quest
|
||||
// Haste: Requires 6 Nepenthese Seeds
|
||||
};
|
||||
|
||||
private final static L2Skill VARKA_KETRA_PETRIFICATION = SkillTable.getInstance().getInfo(4578, 1);
|
||||
private static final L2Skill VARKA_KETRA_PETRIFICATION = SkillTable.getInstance().getInfo(4578, 1);
|
||||
|
||||
/**
|
||||
* Names of missions which will be automatically dropped if the alliance is broken.
|
||||
|
@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.instancemanager;
|
||||
*/
|
||||
public class PlayerCountManager
|
||||
{
|
||||
private volatile static int connectedCount = 0;
|
||||
private volatile static int maxConnectedCount = 0;
|
||||
private volatile static int offlineTradeCount = 0;
|
||||
private static volatile int connectedCount = 0;
|
||||
private static volatile int maxConnectedCount = 0;
|
||||
private static volatile int offlineTradeCount = 0;
|
||||
|
||||
protected PlayerCountManager()
|
||||
{
|
||||
|
@ -21,9 +21,9 @@ package com.l2jmobius.gameserver.model.quest;
|
||||
*/
|
||||
public class State
|
||||
{
|
||||
public final static byte CREATED = 0;
|
||||
public final static byte STARTED = 1;
|
||||
public final static byte COMPLETED = 2;
|
||||
public static final byte CREATED = 0;
|
||||
public static final byte STARTED = 1;
|
||||
public static final byte COMPLETED = 2;
|
||||
|
||||
// discover the string representation of the state, for readable DB storage
|
||||
public static String getStateName(byte state)
|
||||
|
@ -61,22 +61,22 @@ public class Gui
|
||||
{
|
||||
JTextArea txtrConsole;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] abortOptions =
|
||||
static final String[] abortOptions =
|
||||
{
|
||||
"Abort",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] confirmOptions =
|
||||
static final String[] confirmOptions =
|
||||
{
|
||||
"Confirm",
|
||||
"Cancel"
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.gameserver.util.Locator;
|
||||
*/
|
||||
public class SystemPanel extends JPanel
|
||||
{
|
||||
final static long startTime = System.currentTimeMillis();
|
||||
static final long startTime = System.currentTimeMillis();
|
||||
|
||||
public SystemPanel()
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ import com.l2jmobius.Config;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -62,12 +62,12 @@ public class Gui
|
||||
JCheckBoxMenuItem chckbxmntmDisabled;
|
||||
JCheckBoxMenuItem chckbxmntmGmOnly;
|
||||
|
||||
final static String[] shutdownOptions =
|
||||
static final String[] shutdownOptions =
|
||||
{
|
||||
"Shutdown",
|
||||
"Cancel"
|
||||
};
|
||||
final static String[] restartOptions =
|
||||
static final String[] restartOptions =
|
||||
{
|
||||
"Restart",
|
||||
"Cancel"
|
||||
|
@ -37,7 +37,7 @@ import javax.swing.WindowConstants;
|
||||
public class frmAbout
|
||||
{
|
||||
private JFrame frmAbout;
|
||||
final static String URL = "www.l2jmobius.com";
|
||||
static final String URL = "www.l2jmobius.com";
|
||||
URI uri;
|
||||
|
||||
public frmAbout()
|
||||
|
@ -77,7 +77,7 @@ public final class SelMahumDrill extends AbstractNpcAI
|
||||
// Chiefs event broadcast range
|
||||
private static final int TRAINING_RANGE = 1000;
|
||||
|
||||
private static enum Actions
|
||||
private enum Actions
|
||||
{
|
||||
SCE_TRAINING_ACTION_A(4, -1, 2, 2333),
|
||||
SCE_TRAINING_ACTION_B(1, -1, 2, 4333),
|
||||
|
@ -56,7 +56,7 @@ public final class Sailren extends AbstractNpcAI
|
||||
private static int _killCount = 0;
|
||||
private static long _lastAttack = 0;
|
||||
|
||||
private static enum Status
|
||||
private enum Status
|
||||
{
|
||||
ALIVE,
|
||||
IN_FIGHT,
|
||||
|
@ -173,7 +173,7 @@ public final class Elpies extends Event
|
||||
return super.onSpawn(npc);
|
||||
}
|
||||
|
||||
private static enum EventLocation
|
||||
private enum EventLocation
|
||||
{
|
||||
ADEN("Aden", 146558, 148341, 26622, 28560, -2200),
|
||||
DION("Dion", 18564, 19200, 144377, 145782, -3081),
|
||||
|
@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
*/
|
||||
public class Q00350_EnhanceYourWeapon extends Quest
|
||||
{
|
||||
private static enum AbsorbCrystalType
|
||||
private enum AbsorbCrystalType
|
||||
{
|
||||
LAST_HIT,
|
||||
FULL_PARTY,
|
||||
|
@ -191,7 +191,7 @@ public final class Rnd
|
||||
/**
|
||||
* @author Forsaiken
|
||||
*/
|
||||
public static enum RandomType
|
||||
public enum RandomType
|
||||
{
|
||||
/**
|
||||
* For best random quality.
|
||||
|
@ -151,7 +151,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void addGeoObject(IGeoObject object)
|
||||
public final synchronized void addGeoObject(IGeoObject object)
|
||||
{
|
||||
// add geo object, update block geodata when added
|
||||
if (_objects.add(object))
|
||||
@ -161,7 +161,7 @@ public final class BlockComplexDynamic extends BlockComplex implements IBlockDyn
|
||||
}
|
||||
|
||||
@Override
|
||||
final synchronized public void removeGeoObject(IGeoObject object)
|
||||
public final synchronized void removeGeoObject(IGeoObject object)
|
||||
{
|
||||
// remove geo object, update block geodata when removed
|
||||
if (_objects.remove(object))
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user