Removed unnecessary final modifiers from classes, methods and fields.

This commit is contained in:
MobiusDevelopment
2019-07-31 16:00:52 +00:00
parent af6f81263b
commit d302902d9d
18052 changed files with 37464 additions and 37464 deletions
@@ -43,7 +43,7 @@ import org.l2jmobius.gameserver.model.entity.olympiad.OlympiadPeriod;
import org.l2jmobius.gameserver.util.FloodProtectorConfig;
import org.l2jmobius.loginserver.LoginController;
public final class Config
public class Config
{
private static final Logger LOGGER = Logger.getLogger(Config.class.getName());
@@ -24,7 +24,7 @@ import java.util.logging.Logger;
/**
* @author NB4L1
*/
public final class RejectedExecutionHandlerImpl implements RejectedExecutionHandler
public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler
{
private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName());
@@ -23,7 +23,7 @@ import org.l2jmobius.Config;
/**
* @author Mobius
*/
public final class RunnableWrapper implements Runnable
public class RunnableWrapper implements Runnable
{
private static final Logger LOGGER = Logger.getLogger(RunnableWrapper.class.getName());
@@ -34,7 +34,7 @@ import org.l2jmobius.Config;
* <li>Instant pool handles short-life events.</li>
* </ul>
*/
public final class ThreadPool
public class ThreadPool
{
private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName());
@@ -1127,7 +1127,7 @@ public class BlowfishEngine
return "Blowfish";
}
public final int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IOException
public int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IOException
{
if (workingKey == null)
{
@@ -28,7 +28,7 @@ public abstract class AbstractPacket<T extends MMOClient<?>>
T _client;
public final T getClient()
public T getClient()
{
return _client;
}
@@ -81,12 +81,12 @@ public class MMOConnection<T extends MMOClient<?>>
_client = client;
}
public final T getClient()
public T getClient()
{
return _client;
}
public final void sendPacket(SendablePacket<T> sp)
public void sendPacket(SendablePacket<T> sp)
{
sp._client = _client;
@@ -118,12 +118,12 @@ public class MMOConnection<T extends MMOClient<?>>
return _selectionKey;
}
public final InetAddress getInetAddress()
public InetAddress getInetAddress()
{
return _address;
}
public final int getPort()
public int getPort()
{
return _port;
}
@@ -200,12 +200,12 @@ public class MMOConnection<T extends MMOClient<?>>
return _readBuffer;
}
public final boolean isConnected()
public boolean isConnected()
{
return !_socket.isClosed() && _socket.isConnected();
}
public final boolean isChannelConnected()
public boolean isChannelConnected()
{
boolean output = false;
@@ -226,7 +226,7 @@ public class MMOConnection<T extends MMOClient<?>>
return output;
}
public final boolean isClosed()
public boolean isClosed()
{
return _pendingClose;
}
@@ -241,7 +241,7 @@ public class MMOConnection<T extends MMOClient<?>>
*/
@SuppressWarnings("unchecked")
public final void close(SendablePacket<T> sp)
public void close(SendablePacket<T> sp)
{
close(new SendablePacket[]
{
@@ -249,7 +249,7 @@ public class MMOConnection<T extends MMOClient<?>>
});
}
public final void close(SendablePacket<T>[] closeList)
public void close(SendablePacket<T>[] closeList)
{
if (_pendingClose)
{
@@ -20,7 +20,7 @@ package org.l2jmobius.commons.mmocore;
* @author Forsaiken
* @param <E>
*/
public final class NioNetStackList<E>
public class NioNetStackList<E>
{
private final NioNetStackNode _start = new NioNetStackNode();
@@ -33,7 +33,7 @@ public final class NioNetStackList<E>
clear();
}
public final void addLast(E elem)
public void addLast(E elem)
{
final NioNetStackNode newEndNode = _buf.removeFirst();
_end._value = elem;
@@ -41,7 +41,7 @@ public final class NioNetStackList<E>
_end = newEndNode;
}
public final E removeFirst()
public E removeFirst()
{
final NioNetStackNode old = _start._next;
final E value = old._value;
@@ -50,12 +50,12 @@ public final class NioNetStackList<E>
return value;
}
public final boolean isEmpty()
public boolean isEmpty()
{
return _start._next == _end;
}
public final void clear()
public void clear()
{
_start._next = _end;
}
@@ -21,7 +21,7 @@ import java.nio.BufferOverflowException;
/**
* @author Forsaiken
*/
public final class NioNetStringBuffer
public class NioNetStringBuffer
{
private final char[] _buf;
@@ -36,12 +36,12 @@ public final class NioNetStringBuffer
_len = 0;
}
public final void clear()
public void clear()
{
_len = 0;
}
public final void append(char c)
public void append(char c)
{
if (_len < _size)
{
@@ -54,7 +54,7 @@ public final class NioNetStringBuffer
}
@Override
public final String toString()
public String toString()
{
return new String(_buf, 0, _len);
}
@@ -20,7 +20,7 @@ package org.l2jmobius.commons.mmocore;
* @author KenM
*/
public final class SelectorConfig
public class SelectorConfig
{
private int readBufferSize = 64 * 1024;
@@ -34,7 +34,7 @@ import java.util.LinkedList;
* @param <T>
* @author KenM
*/
public final class SelectorThread<T extends MMOClient<?>>extends Thread
public class SelectorThread<T extends MMOClient<?>>extends Thread
{
// default BYTE_ORDER
private static final ByteOrder BYTE_ORDER = ByteOrder.LITTLE_ENDIAN;
@@ -98,7 +98,7 @@ public final class SelectorThread<T extends MMOClient<?>>extends Thread
_selector = Selector.open();
}
public final void openServerSocket(InetAddress address, int tcpPort) throws IOException
public void openServerSocket(InetAddress address, int tcpPort) throws IOException
{
final ServerSocketChannel selectable = ServerSocketChannel.open();
selectable.configureBlocking(false);
@@ -138,7 +138,7 @@ public final class SelectorThread<T extends MMOClient<?>>extends Thread
@SuppressWarnings("unchecked")
@Override
public final void run()
public void run()
{
int selectedKeysCount = 0;
@@ -693,7 +693,7 @@ public final class SelectorThread<T extends MMOClient<?>>extends Thread
}
}
public final void shutdown()
public void shutdown()
{
_shutdown = true;
}
@@ -26,7 +26,7 @@ import java.util.logging.Logger;
import org.l2jmobius.Config;
public final class L2Properties extends Properties
public class L2Properties extends Properties
{
protected static final Logger LOGGER = Logger.getLogger(Config.class.getName());
@@ -82,7 +82,7 @@ public class LimitLinesDocumentListener implements DocumentListener
* Handle insertion of new text into the Document.
*/
@Override
public void insertUpdate(final DocumentEvent e)
public void insertUpdate(DocumentEvent e)
{
// Changes to the Document can not be done within the listener so we need to add the processing to the end of the EDT.
SwingUtilities.invokeLater(() -> removeLines(e));
@@ -34,7 +34,7 @@ import java.util.Arrays;
* @author wolfgang.hoschek@cern.ch
* @version 1.0, 09/24/99
*/
public final class PrimeFinder
public class PrimeFinder
{
/**
* The largest prime this class can generate; currently equal to <tt>Integer.MAX_VALUE</tt>.
@@ -21,7 +21,7 @@ import java.util.Random;
/**
* @author Mobius
*/
public final class Rnd
public class Rnd
{
/**
* Thread-specific random number generator.<br>
@@ -178,7 +178,7 @@ import org.l2jmobius.Config;
*
* @author fordfrog
*/
public final class StringUtil
public class StringUtil
{
private StringUtil()
{
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
* @author mkizub
* @param <T> type of values stored in this hashtable
*/
public final class L2ObjectHashMap<T extends WorldObject>extends L2ObjectMap<T>
public class L2ObjectHashMap<T extends WorldObject>extends L2ObjectMap<T>
{
protected static final Logger LOGGER = Logger.getLogger(L2ObjectHashMap.class.getName());
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.model.WorldObject;
* @author mkizub
* @param <T> type of values stored in this hashtable
*/
public final class L2ObjectHashSet<T extends WorldObject>extends L2ObjectSet<T>
public class L2ObjectHashSet<T extends WorldObject>extends L2ObjectSet<T>
{
protected static final Logger LOGGER = Logger.getLogger(L2ObjectHashSet.class.getName());
@@ -190,7 +190,7 @@ abstract class AbstractAI implements Ctrl
* @param intention The new Intention to set to the AI
*/
@Override
public final void setIntention(CtrlIntention intention)
public void setIntention(CtrlIntention intention)
{
setIntention(intention, null, null);
}
@@ -204,7 +204,7 @@ abstract class AbstractAI implements Ctrl
* @param arg0 The first parameter of the Intention (optional target)
*/
@Override
public final void setIntention(CtrlIntention intention, Object arg0)
public void setIntention(CtrlIntention intention, Object arg0)
{
setIntention(intention, arg0, null);
}
@@ -219,7 +219,7 @@ abstract class AbstractAI implements Ctrl
* @param arg1 The second parameter of the Intention (optional target)
*/
@Override
public final void setIntention(CtrlIntention intention, Object arg0, Object arg1)
public void setIntention(CtrlIntention intention, Object arg0, Object arg1)
{
if (!_actor.isVisible() || !_actor.hasAI())
{
@@ -296,7 +296,7 @@ abstract class AbstractAI implements Ctrl
* @param evt The event whose the AI must be notified
*/
@Override
public final void notifyEvent(CtrlEvent evt)
public void notifyEvent(CtrlEvent evt)
{
notifyEvent(evt, null, null);
}
@@ -310,7 +310,7 @@ abstract class AbstractAI implements Ctrl
* @param arg0 The first parameter of the Event (optional target)
*/
@Override
public final void notifyEvent(CtrlEvent evt, Object arg0)
public void notifyEvent(CtrlEvent evt, Object arg0)
{
notifyEvent(evt, arg0, null);
}
@@ -325,7 +325,7 @@ abstract class AbstractAI implements Ctrl
* @param arg1 The second parameter of the Event (optional target)
*/
@Override
public final void notifyEvent(CtrlEvent evt, Object arg0, Object arg1)
public void notifyEvent(CtrlEvent evt, Object arg0, Object arg1)
{
if (!_actor.isVisible() || !_actor.hasAI() || ((_actor instanceof PlayerInstance) && (((PlayerInstance) _actor).isOnline() == 0)) || ((_actor instanceof PlayerInstance) && ((PlayerInstance) _actor).isInOfflineMode()))
{
@@ -238,17 +238,17 @@ public class MapRegionTable
_pointsWithKarmas[18][2] = -3645;
}
public final int getMapRegion(int posX, int posY)
public int getMapRegion(int posX, int posY)
{
return _regions[getMapRegionX(posX)][getMapRegionY(posY)];
}
public final int getMapRegionX(int posX)
public int getMapRegionX(int posX)
{
return (posX >> 15) + 4;// + centerTileX;
}
public final int getMapRegionY(int posY)
public int getMapRegionY(int posY)
{
return (posY >> 15) + 10;// + centerTileX;
}
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.model.ArmorSet;
/**
* @author ProGramMoS
*/
public final class CustomArmorSetsTable
public class CustomArmorSetsTable
{
private static final Logger LOGGER = Logger.getLogger(CustomArmorSetsTable.class.getName());
private static CustomArmorSetsTable _instance;
@@ -41,7 +41,7 @@ import org.l2jmobius.gameserver.model.actor.instance.FenceInstance;
/**
* @author HoridoJoho / FBIagent
*/
public final class FenceData
public class FenceData
{
private static final Logger LOGGER = Logger.getLogger(FenceData.class.getSimpleName());
@@ -116,7 +116,7 @@ public final class FenceData
spawnFence(x, y, z, name, width, length, height, state);
}
public FenceInstance spawnFence(int x, int y, int z, final String name, int width, int length, int height, FenceState state)
public FenceInstance spawnFence(int x, int y, int z, String name, int width, int length, int height, FenceState state)
{
final FenceInstance fence = new FenceInstance(x, y, name, width, length, height, state);
fence.spawnMe(x, y, z);
@@ -285,7 +285,7 @@ public class GeoEngine
* @param geoY : Geodata Y
* @return boolean : True, if given geo coordinates have geodata
*/
public final boolean hasGeoPos(int geoX, int geoY)
public boolean hasGeoPos(int geoX, int geoY)
{
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
@@ -304,7 +304,7 @@ public class GeoEngine
* @param worldZ : Cell world Z coordinate.
* @return short : Cell geodata Z coordinate, closest to given coordinates.
*/
public final short getHeightNearest(int geoX, int geoY, int worldZ)
public short getHeightNearest(int geoX, int geoY, int worldZ)
{
final ABlock block = getBlock(geoX, geoY);
return block != null ? block.getHeightNearest(geoX, geoY, worldZ) : (short) worldZ;
@@ -317,7 +317,7 @@ public class GeoEngine
* @param worldZ : Cell world Z coordinate.
* @return short : Cell NSWE flag byte coordinate, closest to given coordinates.
*/
public final byte getNsweNearest(int geoX, int geoY, int worldZ)
public byte getNsweNearest(int geoX, int geoY, int worldZ)
{
final ABlock block = getBlock(geoX, geoY);
return block != null ? block.getNsweNearest(geoX, geoY, worldZ) : (byte) 0xFF;
@@ -329,7 +329,7 @@ public class GeoEngine
* @param worldY : World Y
* @return boolean : True, if given world coordinates have geodata
*/
public final boolean hasGeo(int worldX, int worldY)
public boolean hasGeo(int worldX, int worldY)
{
return hasGeoPos(getGeoX(worldX), getGeoY(worldY));
}
@@ -341,7 +341,7 @@ public class GeoEngine
* @param worldZ : world z
* @return short : nearest Z coordinates according to geodata
*/
public final short getHeight(int worldX, int worldY, int worldZ)
public short getHeight(int worldX, int worldY, int worldZ)
{
return getHeightNearest(getGeoX(worldX), getGeoY(worldY), worldZ);
}
@@ -354,7 +354,7 @@ public class GeoEngine
* @param target : The target object.
* @return {@code boolean} : True if origin can see target
*/
public final boolean canSeeTarget(WorldObject origin, WorldObject target)
public boolean canSeeTarget(WorldObject origin, WorldObject target)
{
if (target.isDoor())
{
@@ -427,7 +427,7 @@ public class GeoEngine
* @param position : The target position.
* @return {@code boolean} : True if object can see position
*/
public final boolean canSeeTarget(WorldObject origin, Location position)
public boolean canSeeTarget(WorldObject origin, Location position)
{
// get origin and target world coordinates
final int ox = origin.getX();
@@ -675,7 +675,7 @@ public class GeoEngine
* @param instanceId
* @return {code boolean} : True if target coordinates are reachable from origin coordinates
*/
public final boolean canMoveToTarget(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId)
public boolean canMoveToTarget(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId)
{
// get origin and check existing geo coordinates
final int gox = getGeoX(ox);
@@ -719,7 +719,7 @@ public class GeoEngine
* @param instanceId
* @return {@link Location} : Last point where object can walk (just before wall)
*/
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId)
public Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId)
{
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
if (DoorTable.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz))
@@ -77,13 +77,13 @@ public class BlockComplex extends ABlock
}
@Override
public final boolean hasGeoPos()
public boolean hasGeoPos()
{
return true;
}
@Override
public final short getHeightNearest(int geoX, int geoY, int worldZ)
public short getHeightNearest(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -99,7 +99,7 @@ public class BlockComplex extends ABlock
}
@Override
public final short getHeightAbove(int geoX, int geoY, int worldZ)
public short getHeightAbove(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -112,7 +112,7 @@ public class BlockComplex extends ABlock
}
@Override
public final short getHeightBelow(int geoX, int geoY, int worldZ)
public short getHeightBelow(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -125,7 +125,7 @@ public class BlockComplex extends ABlock
}
@Override
public final byte getNsweNearest(int geoX, int geoY, int worldZ)
public byte getNsweNearest(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -141,7 +141,7 @@ public class BlockComplex extends ABlock
}
@Override
public final byte getNsweAbove(int geoX, int geoY, int worldZ)
public byte getNsweAbove(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -154,7 +154,7 @@ public class BlockComplex extends ABlock
}
@Override
public final byte getNsweBelow(int geoX, int geoY, int worldZ)
public byte getNsweBelow(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -167,13 +167,13 @@ public class BlockComplex extends ABlock
}
@Override
public final int getIndexNearest(int geoX, int geoY, int worldZ)
public int getIndexNearest(int geoX, int geoY, int worldZ)
{
return (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
}
@Override
public final int getIndexAbove(int geoX, int geoY, int worldZ)
public int getIndexAbove(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -192,7 +192,7 @@ public class BlockComplex extends ABlock
}
@Override
public final int getIndexBelow(int geoX, int geoY, int worldZ)
public int getIndexBelow(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = (((geoX % GeoStructure.BLOCK_CELLS_X) * GeoStructure.BLOCK_CELLS_Y) + (geoY % GeoStructure.BLOCK_CELLS_Y)) * 3;
@@ -211,7 +211,7 @@ public class BlockComplex extends ABlock
}
@Override
public final short getHeight(int index)
public short getHeight(int index)
{
return (short) ((_buffer[index + 1] & 0x00FF) | (_buffer[index + 2] << 8));
}
@@ -223,7 +223,7 @@ public class BlockComplex extends ABlock
}
@Override
public final byte getNswe(int index)
public byte getNswe(int index)
{
return _buffer[index];
}
@@ -235,13 +235,13 @@ public class BlockComplex extends ABlock
}
@Override
public final void setNswe(int index, byte nswe)
public void setNswe(int index, byte nswe)
{
_buffer[index] = nswe;
}
@Override
public final void saveBlock(BufferedOutputStream stream) throws IOException
public void saveBlock(BufferedOutputStream stream) throws IOException
{
// write block type
stream.write(GeoStructure.TYPE_COMPLEX_L2D);
@@ -45,127 +45,127 @@ public class BlockFlat extends ABlock
}
@Override
public final boolean hasGeoPos()
public boolean hasGeoPos()
{
return true;
}
@Override
public final short getHeightNearest(int geoX, int geoY, int worldZ)
public short getHeightNearest(int geoX, int geoY, int worldZ)
{
return _height;
}
@Override
public final short getHeightNearestOriginal(int geoX, int geoY, int worldZ)
public short getHeightNearestOriginal(int geoX, int geoY, int worldZ)
{
return _height;
}
@Override
public final short getHeightAbove(int geoX, int geoY, int worldZ)
public short getHeightAbove(int geoX, int geoY, int worldZ)
{
// check and return height
return _height > worldZ ? _height : Short.MIN_VALUE;
}
@Override
public final short getHeightBelow(int geoX, int geoY, int worldZ)
public short getHeightBelow(int geoX, int geoY, int worldZ)
{
// check and return height
return _height < worldZ ? _height : Short.MAX_VALUE;
}
@Override
public final byte getNsweNearest(int geoX, int geoY, int worldZ)
public byte getNsweNearest(int geoX, int geoY, int worldZ)
{
return _nswe;
}
@Override
public final byte getNsweNearestOriginal(int geoX, int geoY, int worldZ)
public byte getNsweNearestOriginal(int geoX, int geoY, int worldZ)
{
return _nswe;
}
@Override
public final byte getNsweAbove(int geoX, int geoY, int worldZ)
public byte getNsweAbove(int geoX, int geoY, int worldZ)
{
// check height and return nswe
return _height > worldZ ? _nswe : 0;
}
@Override
public final byte getNsweBelow(int geoX, int geoY, int worldZ)
public byte getNsweBelow(int geoX, int geoY, int worldZ)
{
// check height and return nswe
return _height < worldZ ? _nswe : 0;
}
@Override
public final int getIndexNearest(int geoX, int geoY, int worldZ)
public int getIndexNearest(int geoX, int geoY, int worldZ)
{
return 0;
}
@Override
public final int getIndexAbove(int geoX, int geoY, int worldZ)
public int getIndexAbove(int geoX, int geoY, int worldZ)
{
// check height and return index
return _height > worldZ ? 0 : -1;
}
@Override
public final int getIndexAboveOriginal(int geoX, int geoY, int worldZ)
public int getIndexAboveOriginal(int geoX, int geoY, int worldZ)
{
return getIndexAbove(geoX, geoY, worldZ);
}
@Override
public final int getIndexBelow(int geoX, int geoY, int worldZ)
public int getIndexBelow(int geoX, int geoY, int worldZ)
{
// check height and return index
return _height < worldZ ? 0 : -1;
}
@Override
public final int getIndexBelowOriginal(int geoX, int geoY, int worldZ)
public int getIndexBelowOriginal(int geoX, int geoY, int worldZ)
{
return getIndexBelow(geoX, geoY, worldZ);
}
@Override
public final short getHeight(int index)
public short getHeight(int index)
{
return _height;
}
@Override
public final short getHeightOriginal(int index)
public short getHeightOriginal(int index)
{
return _height;
}
@Override
public final byte getNswe(int index)
public byte getNswe(int index)
{
return _nswe;
}
@Override
public final byte getNsweOriginal(int index)
public byte getNsweOriginal(int index)
{
return _nswe;
}
@Override
public final void setNswe(int index, byte nswe)
public void setNswe(int index, byte nswe)
{
_nswe = nswe;
}
@Override
public final void saveBlock(BufferedOutputStream stream) throws IOException
public void saveBlock(BufferedOutputStream stream) throws IOException
{
// write block type
stream.write(GeoStructure.TYPE_FLAT_L2D);
@@ -111,13 +111,13 @@ public class BlockMultilayer extends ABlock
}
@Override
public final boolean hasGeoPos()
public boolean hasGeoPos()
{
return true;
}
@Override
public final short getHeightNearest(int geoX, int geoY, int worldZ)
public short getHeightNearest(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = getIndexNearest(geoX, geoY, worldZ);
@@ -133,7 +133,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final short getHeightAbove(int geoX, int geoY, int worldZ)
public short getHeightAbove(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -168,7 +168,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final short getHeightBelow(int geoX, int geoY, int worldZ)
public short getHeightBelow(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -202,7 +202,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final byte getNsweNearest(int geoX, int geoY, int worldZ)
public byte getNsweNearest(int geoX, int geoY, int worldZ)
{
// get cell index
final int index = getIndexNearest(geoX, geoY, worldZ);
@@ -218,7 +218,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final byte getNsweAbove(int geoX, int geoY, int worldZ)
public byte getNsweAbove(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -253,7 +253,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final byte getNsweBelow(int geoX, int geoY, int worldZ)
public byte getNsweBelow(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -287,7 +287,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final int getIndexNearest(int geoX, int geoY, int worldZ)
public int getIndexNearest(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -327,7 +327,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final int getIndexAbove(int geoX, int geoY, int worldZ)
public int getIndexAbove(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -368,7 +368,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final int getIndexBelow(int geoX, int geoY, int worldZ)
public int getIndexBelow(int geoX, int geoY, int worldZ)
{
// move index to the cell given by coordinates
int index = 0;
@@ -408,7 +408,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final short getHeight(int index)
public short getHeight(int index)
{
// get height
return (short) ((_buffer[index + 1] & 0x00FF) | (_buffer[index + 2] << 8));
@@ -422,7 +422,7 @@ public class BlockMultilayer extends ABlock
}
@Override
public final byte getNswe(int index)
public byte getNswe(int index)
{
// get nswe
return _buffer[index];
@@ -436,14 +436,14 @@ public class BlockMultilayer extends ABlock
}
@Override
public final void setNswe(int index, byte nswe)
public void setNswe(int index, byte nswe)
{
// set nswe
_buffer[index] = nswe;
}
@Override
public final void saveBlock(BufferedOutputStream stream) throws IOException
public void saveBlock(BufferedOutputStream stream) throws IOException
{
// write block type
stream.write(GeoStructure.TYPE_MULTILAYER_L2D);
@@ -31,120 +31,120 @@ public class BlockNull extends ABlock
}
@Override
public final boolean hasGeoPos()
public boolean hasGeoPos()
{
return false;
}
@Override
public final short getHeightNearest(int geoX, int geoY, int worldZ)
public short getHeightNearest(int geoX, int geoY, int worldZ)
{
return (short) worldZ;
}
@Override
public final short getHeightNearestOriginal(int geoX, int geoY, int worldZ)
public short getHeightNearestOriginal(int geoX, int geoY, int worldZ)
{
return (short) worldZ;
}
@Override
public final short getHeightAbove(int geoX, int geoY, int worldZ)
public short getHeightAbove(int geoX, int geoY, int worldZ)
{
return (short) worldZ;
}
@Override
public final short getHeightBelow(int geoX, int geoY, int worldZ)
public short getHeightBelow(int geoX, int geoY, int worldZ)
{
return (short) worldZ;
}
@Override
public final byte getNsweNearest(int geoX, int geoY, int worldZ)
public byte getNsweNearest(int geoX, int geoY, int worldZ)
{
return _nswe;
}
@Override
public final byte getNsweNearestOriginal(int geoX, int geoY, int worldZ)
public byte getNsweNearestOriginal(int geoX, int geoY, int worldZ)
{
return _nswe;
}
@Override
public final byte getNsweAbove(int geoX, int geoY, int worldZ)
public byte getNsweAbove(int geoX, int geoY, int worldZ)
{
return _nswe;
}
@Override
public final byte getNsweBelow(int geoX, int geoY, int worldZ)
public byte getNsweBelow(int geoX, int geoY, int worldZ)
{
return _nswe;
}
@Override
public final int getIndexNearest(int geoX, int geoY, int worldZ)
public int getIndexNearest(int geoX, int geoY, int worldZ)
{
return 0;
}
@Override
public final int getIndexAbove(int geoX, int geoY, int worldZ)
public int getIndexAbove(int geoX, int geoY, int worldZ)
{
return 0;
}
@Override
public final int getIndexAboveOriginal(int geoX, int geoY, int worldZ)
public int getIndexAboveOriginal(int geoX, int geoY, int worldZ)
{
return 0;
}
@Override
public final int getIndexBelow(int geoX, int geoY, int worldZ)
public int getIndexBelow(int geoX, int geoY, int worldZ)
{
return 0;
}
@Override
public final int getIndexBelowOriginal(int geoX, int geoY, int worldZ)
public int getIndexBelowOriginal(int geoX, int geoY, int worldZ)
{
return 0;
}
@Override
public final short getHeight(int index)
public short getHeight(int index)
{
return 0;
}
@Override
public final short getHeightOriginal(int index)
public short getHeightOriginal(int index)
{
return 0;
}
@Override
public final byte getNswe(int index)
public byte getNswe(int index)
{
return _nswe;
}
@Override
public final byte getNsweOriginal(int index)
public byte getNsweOriginal(int index)
{
return _nswe;
}
@Override
public final void setNswe(int index, byte nswe)
public void setNswe(int index, byte nswe)
{
}
@Override
public final void saveBlock(BufferedOutputStream stream)
public void saveBlock(BufferedOutputStream stream)
{
}
}
@@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.model.World;
/**
* @author Hasha
*/
public final class GeoStructure
public class GeoStructure
{
// cells
public static final byte CELL_FLAG_E = 1 << 0;
@@ -71,7 +71,7 @@ public class NodeBuffer
* @param gtz : target point z
* @return Node : first node of path
*/
public final Node findPath(int gox, int goy, short goz, int gtx, int gty, short gtz)
public Node findPath(int gox, int goy, short goz, int gtx, int gty, short gtz)
{
// set coordinates (middle of the line (gox,goy) - (gtx,gty), will be in the center of the buffer)
_cx = gox + ((gtx - gox - _size) / 2);
@@ -104,12 +104,12 @@ public class NodeBuffer
return null;
}
public final boolean isLocked()
public boolean isLocked()
{
return _lock.tryLock();
}
public final void free()
public void free()
{
_current = null;
@@ -33,7 +33,7 @@ import org.l2jmobius.gameserver.util.Util;
* A retail-like implementation of //gmspeed builder command.
* @author lord_rex
*/
public final class AdminGmSpeed implements IAdminCommandHandler
public class AdminGmSpeed implements IAdminCommandHandler
{
private static final String[] ADMIN_COMMANDS =
{
@@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.util.BuilderUtil;
/**
* @author lord_rex
*/
public final class AdminHide implements IAdminCommandHandler
public class AdminHide implements IAdminCommandHandler
{
private static final String[] ADMIN_COMMANDS =
{
@@ -72,7 +72,7 @@ public final class AdminHide implements IAdminCommandHandler
}
}
}
catch (final Exception e)
catch (Exception e)
{
BuilderUtil.sendSysMessage(player, "//hide [on|off]");
return true;
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
* The classical custom L2J implementation of the old //gmspeed GM command.
* @author lord_rex (No, it wasn't me at all. Eclipse added my name there.)
*/
public final class AdminSuperHaste implements IAdminCommandHandler
public class AdminSuperHaste implements IAdminCommandHandler
{
public static final String[] ADMIN_COMMANDS =
{
@@ -37,7 +37,7 @@ public class AdminTownWar implements IAdminCommandHandler
};
private WorldObject _activeObject;
public final WorldObject getActiveObject()
public WorldObject getActiveObject()
{
return _activeObject;
}
@@ -54,7 +54,7 @@ public class ArenaManager
_arenas.add(arena);
}
public final ArenaZone getArena(Creature creature)
public ArenaZone getArena(Creature creature)
{
if (_arenas != null)
{
@@ -70,7 +70,7 @@ public class ArenaManager
return null;
}
public final ArenaZone getArena(int x, int y, int z)
public ArenaZone getArena(int x, int y, int z)
{
if (_arenas != null)
{
@@ -154,7 +154,7 @@ public class AuctionManager
}
}
public final Auction getAuction(int auctionId)
public Auction getAuction(int auctionId)
{
final int index = getAuctionIndex(auctionId);
if (index >= 0)
@@ -165,7 +165,7 @@ public class AuctionManager
return null;
}
public final int getAuctionIndex(int auctionId)
public int getAuctionIndex(int auctionId)
{
Auction auction;
@@ -181,7 +181,7 @@ public class AuctionManager
return -1;
}
public final List<Auction> getAuctions()
public List<Auction> getAuctions()
{
return _auctions;
}
@@ -31,7 +31,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SocialAction;
/**
* @author Michiru
*/
public final class AwayManager
public class AwayManager
{
protected static final Logger LOGGER = Logger.getLogger(AwayManager.class.getName());
private static AwayManager _instance;
@@ -63,7 +63,7 @@ public class CastleManager
load();
}
public final int findNearestCastlesIndex(WorldObject obj)
public int findNearestCastlesIndex(WorldObject obj)
{
int index = getCastleIndex(obj);
if (index < 0)
@@ -116,7 +116,7 @@ public class CastleManager
}
}
public final Castle getCastleById(int castleId)
public Castle getCastleById(int castleId)
{
for (Castle temp : getCastles())
{
@@ -129,7 +129,7 @@ public class CastleManager
return null;
}
public final Castle getCastleByOwner(Clan clan)
public Castle getCastleByOwner(Clan clan)
{
if (clan == null)
{
@@ -147,7 +147,7 @@ public class CastleManager
return null;
}
public final Castle getCastle(String name)
public Castle getCastle(String name)
{
if (name == null)
{
@@ -165,7 +165,7 @@ public class CastleManager
return null;
}
public final Castle getCastle(int x, int y, int z)
public Castle getCastle(int x, int y, int z)
{
for (Castle temp : getCastles())
{
@@ -178,7 +178,7 @@ public class CastleManager
return null;
}
public final Castle getCastle(WorldObject activeObject)
public Castle getCastle(WorldObject activeObject)
{
if (activeObject == null)
{
@@ -188,7 +188,7 @@ public class CastleManager
return getCastle(activeObject.getX(), activeObject.getY(), activeObject.getZ());
}
public final int getCastleIndex(int castleId)
public int getCastleIndex(int castleId)
{
Castle castle;
for (int i = 0; i < getCastles().size(); i++)
@@ -202,12 +202,12 @@ public class CastleManager
return -1;
}
public final int getCastleIndex(WorldObject activeObject)
public int getCastleIndex(WorldObject activeObject)
{
return getCastleIndex(activeObject.getX(), activeObject.getY(), activeObject.getZ());
}
public final int getCastleIndex(int x, int y, int z)
public int getCastleIndex(int x, int y, int z)
{
Castle castle;
for (int i = 0; i < getCastles().size(); i++)
@@ -221,7 +221,7 @@ public class CastleManager
return -1;
}
public final List<Castle> getCastles()
public List<Castle> getCastles()
{
if (_castles == null)
{
@@ -230,7 +230,7 @@ public class CastleManager
return _castles;
}
public final void validateTaxes(int sealStrifeOwner)
public void validateTaxes(int sealStrifeOwner)
{
int maxTax;
@@ -128,7 +128,7 @@ public class ClanHallManager
/**
* @return Map with all free ClanHalls
*/
public final Map<Integer, ClanHall> getFreeClanHalls()
public Map<Integer, ClanHall> getFreeClanHalls()
{
return _freeClanHall;
}
@@ -136,7 +136,7 @@ public class ClanHallManager
/**
* @return Map with all ClanHalls that have owner
*/
public final Map<Integer, ClanHall> getClanHalls()
public Map<Integer, ClanHall> getClanHalls()
{
return _clanHall;
}
@@ -145,7 +145,7 @@ public class ClanHallManager
* @param location
* @return Map with all ClanHalls which are in location
*/
public final List<ClanHall> getClanHallsByLocation(String location)
public List<ClanHall> getClanHallsByLocation(String location)
{
if (!_allClanHalls.containsKey(location))
{
@@ -159,7 +159,7 @@ public class ClanHallManager
* @param chId the clanHall id to check.
* @return true if the clanHall is free.
*/
public final boolean isFree(int chId)
public boolean isFree(int chId)
{
return _freeClanHall.containsKey(chId);
}
@@ -168,7 +168,7 @@ public class ClanHallManager
* Free a ClanHall
* @param chId the id of clanHall to release.
*/
public final synchronized void setFree(int chId)
public synchronized void setFree(int chId)
{
_freeClanHall.put(chId, _clanHall.get(chId));
ClanTable.getInstance().getClan(_freeClanHall.get(chId).getOwnerId()).setHasHideout(0);
@@ -181,7 +181,7 @@ public class ClanHallManager
* @param chId the clanHall id to make checks on.
* @param clan the new clan owner.
*/
public final synchronized void setOwner(int chId, Clan clan)
public synchronized void setOwner(int chId, Clan clan)
{
if (!_clanHall.containsKey(chId))
{
@@ -201,7 +201,7 @@ public class ClanHallManager
* @param clanHallId the id to use.
* @return a clanHall by its id.
*/
public final ClanHall getClanHallById(int clanHallId)
public ClanHall getClanHallById(int clanHallId)
{
if (_clanHall.containsKey(clanHallId))
{
@@ -215,7 +215,7 @@ public class ClanHallManager
return null;
}
public final ClanHall getNearbyClanHall(int x, int y, int maxDist)
public ClanHall getNearbyClanHall(int x, int y, int maxDist)
{
ClanHallZone zone = null;
@@ -242,7 +242,7 @@ public class ClanHallManager
* @param clan the clan to use.
* @return a clanHall by its owner.
*/
public final ClanHall getClanHallByOwner(Clan clan)
public ClanHall getClanHallByOwner(Clan clan)
{
for (Map.Entry<Integer, ClanHall> ch : _clanHall.entrySet())
{
@@ -81,7 +81,7 @@ public class CoupleManager
}
}
public final Wedding getCouple(int coupleId)
public Wedding getCouple(int coupleId)
{
final int index = getCoupleIndex(coupleId);
if (index >= 0)
@@ -136,7 +136,7 @@ public class CoupleManager
}
}
public final int getCoupleIndex(int coupleId)
public int getCoupleIndex(int coupleId)
{
int i = 0;
for (Wedding temp : _couples)
@@ -150,7 +150,7 @@ public class CoupleManager
return -1;
}
public final List<Wedding> getCouples()
public List<Wedding> getCouples()
{
return _couples;
}
@@ -78,7 +78,7 @@ public class CursedWeaponsManager
LOGGER.info("Loaded: " + _cursedWeapons.size() + " cursed weapon(s).");
}
public final void reload()
public void reload()
{
if (!Config.ALLOW_CURSED_WEAPONS)
{
@@ -31,7 +31,7 @@ import org.l2jmobius.commons.util.Rnd;
* @version 1.00
* @author Darki699
*/
public final class CustomNpcInstanceManager
public class CustomNpcInstanceManager
{
private static final Logger LOGGER = Logger.getLogger(CustomNpcInstanceManager.class.getName());
private static CustomNpcInstanceManager _instance;
@@ -42,7 +42,7 @@ public final class CustomNpcInstanceManager
* Small class to keep the npc poly data... Pretty code =)
* @author Darki699
*/
public final class customInfo
public class customInfo
{
public String stringData[] = new String[2];
public int integerData[] = new int[27];
@@ -73,7 +73,7 @@ public final class CustomNpcInstanceManager
/**
* Flush the old data, and load new data
*/
public final void reload()
public void reload()
{
if (spawns != null)
{
@@ -203,7 +203,7 @@ public final class CustomNpcInstanceManager
* @param npcId - NpcInstance's npc template id
* @return
*/
public final boolean isThisL2CustomNpcInstance(int spwnId, int npcId)
public boolean isThisL2CustomNpcInstance(int spwnId, int npcId)
{
if ((spwnId == 0) || (npcId == 0))
{
@@ -229,7 +229,7 @@ public final class CustomNpcInstanceManager
* @param npcId - NpcInstance's npc template Id
* @return customInfo type data pack, or null if no such data exists.
*/
public final customInfo getCustomData(int spwnId, int npcId)
public customInfo getCustomData(int spwnId, int npcId)
{
if ((spwnId == 0) || (npcId == 0))
{
@@ -260,7 +260,7 @@ public final class CustomNpcInstanceManager
/**
* @return all template morphing queue
*/
public final Map<Integer, customInfo> getAllTemplates()
public Map<Integer, customInfo> getAllTemplates()
{
return templates;
}
@@ -268,7 +268,7 @@ public final class CustomNpcInstanceManager
/**
* @return all spawns morphing queue
*/
public final Map<Integer, customInfo> getAllSpawns()
public Map<Integer, customInfo> getAllSpawns()
{
return spawns;
}
@@ -277,11 +277,11 @@ public final class CustomNpcInstanceManager
* Already removed customInfo - Change is saved in the DB <b>NOT IMPLEMENTED YET!</b>
* @param ciToRemove
*/
public final void updateRemoveInDB(customInfo ciToRemove)
public void updateRemoveInDB(customInfo ciToRemove)
{
}
public final void AddInDB(customInfo ciToAdd)
public void AddInDB(customInfo ciToAdd)
{
String Query = "REPLACE INTO npc_to_pc_polymorph VALUES spawn,template,name,title,class_id,female,hair_style,hair_color,face,name_color,title_color, noble,hero,pvp,karma,wpn_enchant,right_hand,left_hand,gloves,chest,legs,feet,hair,hair2, pledge,cw_level,clan_id,ally_id,clan_crest,ally_crest,rnd_class,rnd_appearance,rnd_weapon,rnd_armor,max_rnd_enchant FROM npc_to_pc_polymorph";
@@ -69,7 +69,7 @@ public class FishingZoneManager
* isInsideFishingZone() - This function was modified to check the coordinates without caring for Z. This allows for the player to fish off bridges, into the water, or from other similar high places. One should be able to cast the line from up into the water, not only fishing whith one's feet
* wet. :) TODO: Consider in the future, limiting the maximum height one can be above water, if we start getting "orbital fishing" players... xD
*/
public final FishingZone isInsideFishingZone(int x, int y, int z)
public FishingZone isInsideFishingZone(int x, int y, int z)
{
for (FishingZone temp : _fishingZones)
{
@@ -81,7 +81,7 @@ public class FishingZoneManager
return null;
}
public final WaterZone isInsideWaterZone(int x, int y, int z)
public WaterZone isInsideWaterZone(int x, int y, int z)
{
for (WaterZone temp : _waterZones)
{
@@ -44,7 +44,7 @@ public class FortManager
load();
}
public final int findNearestFortIndex(WorldObject obj)
public int findNearestFortIndex(WorldObject obj)
{
int index = getFortIndex(obj);
if (index < 0)
@@ -97,7 +97,7 @@ public class FortManager
}
}
public final Fort getFortById(int fortId)
public Fort getFortById(int fortId)
{
for (Fort f : _forts)
{
@@ -109,7 +109,7 @@ public class FortManager
return null;
}
public final Fort getFortByOwner(Clan clan)
public Fort getFortByOwner(Clan clan)
{
for (Fort f : _forts)
{
@@ -121,7 +121,7 @@ public class FortManager
return null;
}
public final Fort getFort(String name)
public Fort getFort(String name)
{
for (Fort f : _forts)
{
@@ -133,7 +133,7 @@ public class FortManager
return null;
}
public final Fort getFort(int x, int y, int z)
public Fort getFort(int x, int y, int z)
{
for (Fort f : _forts)
{
@@ -145,12 +145,12 @@ public class FortManager
return null;
}
public final Fort getFort(WorldObject activeObject)
public Fort getFort(WorldObject activeObject)
{
return getFort(activeObject.getX(), activeObject.getY(), activeObject.getZ());
}
public final int getFortIndex(int fortId)
public int getFortIndex(int fortId)
{
Fort fort;
for (int i = 0; i < _forts.size(); i++)
@@ -164,12 +164,12 @@ public class FortManager
return -1;
}
public final int getFortIndex(WorldObject activeObject)
public int getFortIndex(WorldObject activeObject)
{
return getFortIndex(activeObject.getX(), activeObject.getY(), activeObject.getZ());
}
public final int getFortIndex(int x, int y, int z)
public int getFortIndex(int x, int y, int z)
{
Fort fort;
for (int i = 0; i < _forts.size(); i++)
@@ -183,7 +183,7 @@ public class FortManager
return -1;
}
public final List<Fort> getForts()
public List<Fort> getForts()
{
return _forts;
}
@@ -276,12 +276,12 @@ public class FortSiegeGuardManager
}
}
public final Fort getFort()
public Fort getFort()
{
return _fort;
}
public final List<Spawn> getSiegeGuardSpawn()
public List<Spawn> getSiegeGuardSpawn()
{
return _siegeGuardSpawn;
}
@@ -73,7 +73,7 @@ public class FortSiegeManager
private int _siegeLength = 120; // Time in minute. Changeable in siege.config
private List<FortSiege> _sieges;
public final void addSiegeSkills(PlayerInstance character)
public void addSiegeSkills(PlayerInstance character)
{
character.addSkill(SkillTable.getInstance().getInfo(246, 1), false);
character.addSkill(SkillTable.getInstance().getInfo(247, 1), false);
@@ -86,7 +86,7 @@ public class FortSiegeManager
* @param isCheckOnly
* @return
*/
public final boolean checkIfOkToSummon(Creature creature, boolean isCheckOnly)
public boolean checkIfOkToSummon(Creature creature, boolean isCheckOnly)
{
if ((creature == null) || !(creature instanceof PlayerInstance))
{
@@ -129,7 +129,7 @@ public class FortSiegeManager
* @param fortid
* @return
*/
public final boolean checkIsRegistered(Clan clan, int fortid)
public boolean checkIsRegistered(Clan clan, int fortid)
{
if (clan == null)
{
@@ -165,7 +165,7 @@ public class FortSiegeManager
return register;
}
public final void removeSiegeSkills(PlayerInstance character)
public void removeSiegeSkills(PlayerInstance character)
{
character.removeSkill(SkillTable.getInstance().getInfo(246, 1));
character.removeSkill(SkillTable.getInstance().getInfo(247, 1));
@@ -278,7 +278,7 @@ public class FortSiegeManager
}
}
public final List<SiegeSpawn> getCommanderSpawnList(int _fortId)
public List<SiegeSpawn> getCommanderSpawnList(int _fortId)
{
if (_commanderSpawnList.containsKey(_fortId))
{
@@ -287,7 +287,7 @@ public class FortSiegeManager
return null;
}
public final List<SiegeSpawn> getFlagList(int _fortId)
public List<SiegeSpawn> getFlagList(int _fortId)
{
if (_flagList.containsKey(_fortId))
{
@@ -296,42 +296,42 @@ public class FortSiegeManager
return null;
}
public final int getAttackerMaxClans()
public int getAttackerMaxClans()
{
return _attackerMaxClans;
}
public final int getAttackerRespawnDelay()
public int getAttackerRespawnDelay()
{
return _attackerRespawnDelay;
}
public final int getControlTowerLosePenalty()
public int getControlTowerLosePenalty()
{
return _controlTowerLosePenalty;
}
public final int getDefenderMaxClans()
public int getDefenderMaxClans()
{
return _defenderMaxClans;
}
public final int getDefenderRespawnDelay()
public int getDefenderRespawnDelay()
{
return _defenderRespawnDelay;
}
public final int getFlagMaxCount()
public int getFlagMaxCount()
{
return _flagMaxCount;
}
public final FortSiege getSiege(WorldObject activeObject)
public FortSiege getSiege(WorldObject activeObject)
{
return getSiege(activeObject.getX(), activeObject.getY(), activeObject.getZ());
}
public final FortSiege getSiege(int x, int y, int z)
public FortSiege getSiege(int x, int y, int z)
{
for (Fort fort : FortManager.getInstance().getForts())
{
@@ -343,17 +343,17 @@ public class FortSiegeManager
return null;
}
public final int getSiegeClanMinLevel()
public int getSiegeClanMinLevel()
{
return _siegeClanMinLevel;
}
public final int getSiegeLength()
public int getSiegeLength()
{
return _siegeLength;
}
public final List<FortSiege> getSieges()
public List<FortSiege> getSieges()
{
if (_sieges == null)
{
@@ -362,7 +362,7 @@ public class FortSiegeManager
return _sieges;
}
public final void addSiege(FortSiege fortSiege)
public void addSiege(FortSiege fortSiege)
{
if (_sieges == null)
{
@@ -371,7 +371,7 @@ public class FortSiegeManager
_sieges.add(fortSiege);
}
public final void removeSiege(FortSiege fortSiege)
public void removeSiege(FortSiege fortSiege)
{
if (_sieges == null)
{
@@ -436,7 +436,7 @@ public class FortSiegeManager
}
}
public final boolean checkIsRegisteredInSiege(Clan clan)
public boolean checkIsRegisteredInSiege(Clan clan)
{
for (Fort fort : FortManager.getInstance().getForts())
{
@@ -32,7 +32,7 @@ import org.l2jmobius.gameserver.model.variables.AbstractVariables;
* Global Variables Manager.
* @author xban1x
*/
public final class GlobalVariablesManager extends AbstractVariables
public class GlobalVariablesManager extends AbstractVariables
{
private static final Logger LOGGER = Logger.getLogger(GlobalVariablesManager.class.getName());
@@ -191,7 +191,7 @@ public class GrandBossManager
}
}
public final BossZone getZone(Creature creature)
public BossZone getZone(Creature creature)
{
if (_zones != null)
{
@@ -206,7 +206,7 @@ public class GrandBossManager
return null;
}
public final BossZone getZone(int x, int y, int z)
public BossZone getZone(int x, int y, int z)
{
if (_zones != null)
{
@@ -944,7 +944,7 @@ public class MercTicketManager
return ITEM_IDS;
}
public final List<ItemInstance> getDroppedTickets()
public List<ItemInstance> getDroppedTickets()
{
return _droppedTickets;
}
@@ -55,7 +55,7 @@ public class OlympiadStadiaManager
_olympiadStadias.add(arena);
}
public final OlympiadStadiumZone getStadium(Creature creature)
public OlympiadStadiumZone getStadium(Creature creature)
{
for (OlympiadStadiumZone temp : _olympiadStadias)
{
@@ -68,7 +68,7 @@ public class OlympiadStadiaManager
return null;
}
public final OlympiadStadiumZone getStadiumByLoc(int x, int y, int z)
public OlympiadStadiumZone getStadiumByLoc(int x, int y, int z)
{
if (_olympiadStadias != null)
{
@@ -39,7 +39,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
* Petition Manager
* @author Tempy
*/
public final class PetitionManager
public class PetitionManager
{
protected static final Logger LOGGER = Logger.getLogger(PetitionManager.class.getName());
private static PetitionManager _instance;
@@ -22,7 +22,7 @@ import java.util.logging.Logger;
import org.l2jmobius.gameserver.model.quest.Quest;
public final class QuestManager
public class QuestManager
{
protected static final Logger LOGGER = Logger.getLogger(QuestManager.class.getName());
private Map<String, Quest> _quests = new HashMap<>();
@@ -44,7 +44,7 @@ public final class QuestManager
_questCount = 0;
}
public final boolean reload(String questFolder)
public boolean reload(String questFolder)
{
final Quest q = getQuest(questFolder);
if (q == null)
@@ -60,7 +60,7 @@ public final class QuestManager
* @param questId The id of the quest to be reloaded
* @return true if reload was succesful, false otherwise
*/
public final boolean reload(int questId)
public boolean reload(int questId)
{
final Quest q = getQuest(questId);
if (q == null)
@@ -70,7 +70,7 @@ public final class QuestManager
return q.reload();
}
public final void reloadAllQuests()
public void reloadAllQuests()
{
// LOGGER.info("Reloading Server Scripts");
//// unload all scripts
@@ -87,12 +87,12 @@ public final class QuestManager
// getInstance().report();
}
public final void report()
public void report()
{
LOGGER.info("Loaded: " + _questCount + " quest scripts.");
}
public final void save()
public void save()
{
for (Quest q : getQuests().values())
{
@@ -100,12 +100,12 @@ public final class QuestManager
}
}
public final Quest getQuest(String name)
public Quest getQuest(String name)
{
return getQuests().get(name);
}
public final Quest getQuest(int questId)
public Quest getQuest(int questId)
{
for (Quest q : getQuests().values())
{
@@ -117,7 +117,7 @@ public final class QuestManager
return null;
}
public final void addQuest(Quest newQuest)
public void addQuest(Quest newQuest)
{
if (getQuests().containsKey(newQuest.getName()))
{
@@ -132,7 +132,7 @@ public final class QuestManager
getQuests().put(newQuest.getName(), newQuest);
}
public final Map<String, Quest> getQuests()
public Map<String, Quest> getQuests()
{
if (_quests == null)
{
@@ -166,12 +166,12 @@ public final class QuestManager
return "QuestManager";
}
public final boolean removeQuest(Quest q)
public boolean removeQuest(Quest q)
{
return _quests.remove(q.getName()) != null;
}
public final void unloadAllQuests()
public void unloadAllQuests()
{
LOGGER.info("Unloading Server Quests");
// unload all scripts
@@ -274,12 +274,12 @@ public class SiegeGuardManager
}
}
public final Castle getCastle()
public Castle getCastle()
{
return _castle;
}
public final List<Spawn> getSiegeGuardSpawn()
public List<Spawn> getSiegeGuardSpawn()
{
return _siegeGuardSpawn;
}
@@ -75,7 +75,7 @@ public class SiegeManager
load();
}
public final void addSiegeSkills(PlayerInstance character)
public void addSiegeSkills(PlayerInstance character)
{
character.addSkill(SkillTable.getInstance().getInfo(246, 1), false);
character.addSkill(SkillTable.getInstance().getInfo(247, 1), false);
@@ -88,7 +88,7 @@ public class SiegeManager
* @param isCheckOnly
* @return
*/
public final boolean checkIfOkToSummon(Creature creature, boolean isCheckOnly)
public boolean checkIfOkToSummon(Creature creature, boolean isCheckOnly)
{
if ((creature == null) || !(creature instanceof PlayerInstance))
{
@@ -124,7 +124,7 @@ public class SiegeManager
return false;
}
public final boolean checkIsRegisteredInSiege(Clan clan)
public boolean checkIsRegisteredInSiege(Clan clan)
{
for (Castle castle : CastleManager.getInstance().getCastles())
@@ -144,7 +144,7 @@ public class SiegeManager
* @param castleid
* @return
*/
public final boolean checkIsRegistered(Clan clan, int castleid)
public boolean checkIsRegistered(Clan clan, int castleid)
{
if (clan == null)
{
@@ -182,7 +182,7 @@ public class SiegeManager
return register;
}
public final void removeSiegeSkills(PlayerInstance character)
public void removeSiegeSkills(PlayerInstance character)
{
character.removeSkill(SkillTable.getInstance().getInfo(246, 1));
character.removeSkill(SkillTable.getInstance().getInfo(247, 1));
@@ -303,7 +303,7 @@ public class SiegeManager
}
}
public final List<SiegeSpawn> getArtefactSpawnList(int _castleId)
public List<SiegeSpawn> getArtefactSpawnList(int _castleId)
{
if (_artefactSpawnList.containsKey(_castleId))
{
@@ -312,7 +312,7 @@ public class SiegeManager
return null;
}
public final List<SiegeSpawn> getControlTowerSpawnList(int _castleId)
public List<SiegeSpawn> getControlTowerSpawnList(int _castleId)
{
if (_controlTowerSpawnList.containsKey(_castleId))
{
@@ -321,42 +321,42 @@ public class SiegeManager
return null;
}
public final int getAttackerMaxClans()
public int getAttackerMaxClans()
{
return _attackerMaxClans;
}
public final int getAttackerRespawnDelay()
public int getAttackerRespawnDelay()
{
return _attackerRespawnDelay;
}
public final int getControlTowerLosePenalty()
public int getControlTowerLosePenalty()
{
return _controlTowerLosePenalty;
}
public final int getDefenderMaxClans()
public int getDefenderMaxClans()
{
return _defenderMaxClans;
}
public final int getDefenderRespawnDelay()
public int getDefenderRespawnDelay()
{
return _defenderRespawnDelay;
}
public final int getFlagMaxCount()
public int getFlagMaxCount()
{
return _flagMaxCount;
}
public final Siege getSiege(WorldObject activeObject)
public Siege getSiege(WorldObject activeObject)
{
return getSiege(activeObject.getX(), activeObject.getY(), activeObject.getZ());
}
public final Siege getSiege(int x, int y, int z)
public Siege getSiege(int x, int y, int z)
{
for (Castle castle : CastleManager.getInstance().getCastles())
{
@@ -368,17 +368,17 @@ public class SiegeManager
return null;
}
public final int getSiegeClanMinLevel()
public int getSiegeClanMinLevel()
{
return _siegeClanMinLevel;
}
public final int getSiegeLength()
public int getSiegeLength()
{
return _siegeLength;
}
public final List<Siege> getSieges()
public List<Siege> getSieges()
{
final List<Siege> _sieges = new ArrayList<>();
for (Castle castle : CastleManager.getInstance().getCastles())
@@ -57,7 +57,7 @@ public class TownManager
_towns.add(arena);
}
public final TownZone getClosestTown(WorldObject activeObject)
public TownZone getClosestTown(WorldObject activeObject)
{
switch (MapRegionTable.getInstance().getMapRegion(activeObject.getPosition().getX(), activeObject.getPosition().getY()))
{
@@ -218,7 +218,7 @@ public class TownManager
return 0;
}
public final boolean townHasCastleInSiege(int townId)
public boolean townHasCastleInSiege(int townId)
{
final int[] castleidarray =
{
@@ -255,7 +255,7 @@ public class TownManager
return false;
}
public final boolean townHasCastleInSiege(int x, int y)
public boolean townHasCastleInSiege(int x, int y)
{
final int curtown = MapRegionTable.getInstance().getMapRegion(x, y);
final int[] castleidarray =
@@ -293,7 +293,7 @@ public class TownManager
return false;
}
public final TownZone getTown(int townId)
public TownZone getTown(int townId)
{
for (TownZone temp : _towns)
{
@@ -313,7 +313,7 @@ public class TownManager
* @param z
* @return
*/
public final TownZone getTown(int x, int y, int z)
public TownZone getTown(int x, int y, int z)
{
for (TownZone temp : _towns)
{
@@ -22,7 +22,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
/**
* @author Luno
*/
public final class ArmorSet
public class ArmorSet
{
private final int _chest;
private final int _legs;
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.skills.funcs.LambdaConst;
* Used to store an augmentation and its bonus
* @author durgus
*/
public final class Augmentation
public class Augmentation
{
private static final Logger LOGGER = Logger.getLogger(Augmentation.class.getName());
@@ -22,7 +22,7 @@ import org.l2jmobius.gameserver.templates.StatsSet;
/**
* @author kombat
*/
public final class ChanceCondition
public class ChanceCondition
{
public static final int EVT_HIT = 1;
public static final int EVT_CRIT = 2;
@@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.model.actor.instance.ItemInstance.ItemLocation;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.clan.Clan;
public final class ClanWarehouse extends Warehouse
public class ClanWarehouse extends Warehouse
{
private final Clan _clan;
@@ -40,7 +40,7 @@ public class CombatFlag
private final int _itemId;
public CombatFlag(final int x, int y, int z, int heading, int item_id)
public CombatFlag(int x, int y, int z, int heading, int item_id)
{
_location = new Location(x, y, z, heading);
_itemId = item_id;
@@ -141,7 +141,7 @@ public abstract class Effect
private boolean _cancelEffect = false;
public final class EffectTask implements Runnable
public class EffectTask implements Runnable
{
protected final int _delay;
protected final int _rate;
@@ -287,17 +287,17 @@ public abstract class Effect
return _stackOrder;
}
public final Skill getSkill()
public Skill getSkill()
{
return _skill;
}
public final Creature getEffector()
public Creature getEffector()
{
return _effector;
}
public final Creature getEffected()
public Creature getEffected()
{
return _effected;
}
@@ -317,7 +317,7 @@ public abstract class Effect
return false;
}
public final double calc()
public double calc()
{
final Env env = new Env();
env.player = _effector;
@@ -367,17 +367,17 @@ public abstract class Effect
* <li>Stop the task of the Effect, remove it and update client magic icone</li><BR>
* <BR>
*/
public final void exit()
public void exit()
{
exit(false, false);
}
public final void exit(boolean cancelEffect)
public void exit(boolean cancelEffect)
{
exit(false, cancelEffect);
}
public final void exit(boolean preventUpdate, boolean cancelEffect)
public void exit(boolean preventUpdate, boolean cancelEffect)
{
preventExitUpdate = preventUpdate;
_state = EffectState.FINISHING;
@@ -451,7 +451,7 @@ public abstract class Effect
*/
public abstract boolean onActionTime();
public final void rescheduleEffect()
public void rescheduleEffect()
{
if (_state != EffectState.ACTING)
{
@@ -472,7 +472,7 @@ public abstract class Effect
}
}
public final void scheduleEffect()
public void scheduleEffect()
{
if (_state == EffectState.CREATED)
{
@@ -578,7 +578,7 @@ public abstract class Effect
return funcs.toArray(new Func[funcs.size()]);
}
public final void addIcon(MagicEffectIcons mi)
public void addIcon(MagicEffectIcons mi)
{
EffectTask task = _currentTask;
ScheduledFuture<?> future = _currentFuture;
@@ -630,7 +630,7 @@ public abstract class Effect
}
}
public final void addPartySpelledIcon(PartySpelled ps)
public void addPartySpelledIcon(PartySpelled ps)
{
EffectTask task = _currentTask;
ScheduledFuture<?> future = _currentFuture;
@@ -648,7 +648,7 @@ public abstract class Effect
ps.addPartySpelledEffect(_skill.getId(), _skill.getLevel(), (int) future.getDelay(TimeUnit.MILLISECONDS));
}
public final void addOlympiadSpelledIcon(ExOlympiadSpelledInfo os)
public void addOlympiadSpelledIcon(ExOlympiadSpelledInfo os)
{
EffectTask task = _currentTask;
ScheduledFuture<?> future = _currentFuture;
@@ -691,7 +691,7 @@ public abstract class Effect
_periodStartTicks = periodStartTicks;
}
public final boolean getShowIcon()
public boolean getShowIcon()
{
return _template.showIcon;
}
@@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
public final class EnchantSkillLearn
public class EnchantSkillLearn
{
// these two build the primary key
private final int id;
@@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.skills.effects.EffectForce;
/**
* @author kombat
*/
public final class ForceBuff
public class ForceBuff
{
protected int _forceId;
protected int _forceLevel;
@@ -26,19 +26,19 @@ public class Macro
public static final int CMD_TYPE_SHORTCUT = 4;
public int id;
public final int icon;
public final String name;
public final String descr;
public final String acronym;
public final MacroCmd[] commands;
public int icon;
public String name;
public String descr;
public String acronym;
public MacroCmd[] commands;
public static class MacroCmd
{
public final int entry;
public final int type;
public final int d1; // skill_id or page for shortcuts
public final int d2; // shortcut
public final String cmd;
public int entry;
public int type;
public int d1; // skill_id or page for shortcuts
public int d2; // shortcut
public String cmd;
public MacroCmd(int pEntry, int pType, int pD1, int pD2, String pCmd)
{
@@ -33,7 +33,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
/**
* @author littlecrow
*/
public final class MobGroup
public class MobGroup
{
private final NpcTemplate _npcTemplate;
private final int _groupId;
@@ -55,7 +55,7 @@ public class ObjectPosition
* @param y the y
* @param z the z
*/
public final void setXYZ(int x, int y, int z)
public void setXYZ(int x, int y, int z)
{
setWorldPosition(x, y, z);
@@ -102,7 +102,7 @@ public class ObjectPosition
* @param y the y
* @param z the z
*/
public final void setXYZInvisible(int x, int y, int z)
public void setXYZInvisible(int x, int y, int z)
{
if (x > World.MAP_MAX_X)
{
@@ -154,7 +154,7 @@ public class ObjectPosition
* Gets the active object.
* @return the active object
*/
public final WorldObject getActiveObject()
public WorldObject getActiveObject()
{
return _activeObject;
}
@@ -163,7 +163,7 @@ public class ObjectPosition
* Gets the heading.
* @return the heading
*/
public final int getHeading()
public int getHeading()
{
return _heading;
}
@@ -172,7 +172,7 @@ public class ObjectPosition
* Sets the heading.
* @param value the new heading
*/
public final void setHeading(int value)
public void setHeading(int value)
{
_heading = value;
}
@@ -181,7 +181,7 @@ public class ObjectPosition
* Return the x position of the WorldObject.
* @return the x
*/
public final int getX()
public int getX()
{
return getWorldPosition().getX();
}
@@ -190,7 +190,7 @@ public class ObjectPosition
* Sets the x.
* @param value the new x
*/
public final void setX(int value)
public void setX(int value)
{
getWorldPosition().setX(value);
}
@@ -199,7 +199,7 @@ public class ObjectPosition
* Return the y position of the WorldObject.
* @return the y
*/
public final int getY()
public int getY()
{
return getWorldPosition().getY();
}
@@ -208,7 +208,7 @@ public class ObjectPosition
* Sets the y.
* @param value the new y
*/
public final void setY(int value)
public void setY(int value)
{
getWorldPosition().setY(value);
}
@@ -217,7 +217,7 @@ public class ObjectPosition
* Return the z position of the WorldObject.
* @return the z
*/
public final int getZ()
public int getZ()
{
return getWorldPosition().getZ();
}
@@ -226,7 +226,7 @@ public class ObjectPosition
* Sets the z.
* @param value the new z
*/
public final void setZ(int value)
public void setZ(int value)
{
getWorldPosition().setZ(value);
}
@@ -235,7 +235,7 @@ public class ObjectPosition
* Gets the world position.
* @return the world position
*/
public final Location getWorldPosition()
public Location getWorldPosition()
{
if (_worldPosition == null)
{
@@ -251,7 +251,7 @@ public class ObjectPosition
* @param y the y
* @param z the z
*/
public final void setWorldPosition(int x, int y, int z)
public void setWorldPosition(int x, int y, int z)
{
getWorldPosition().setXYZ(x, y, z);
}
@@ -260,7 +260,7 @@ public class ObjectPosition
* Sets the world position.
* @param location the new world position
*/
public final void setWorldPosition(Location location)
public void setWorldPosition(Location location)
{
setWorldPosition(location.getX(), location.getY(), location.getZ());
}
@@ -269,7 +269,7 @@ public class ObjectPosition
* Gets the world region.
* @return the world region
*/
public final WorldRegion getWorldRegion()
public WorldRegion getWorldRegion()
{
synchronized (_changingRegion)
{
@@ -282,7 +282,7 @@ public class ObjectPosition
* Sets the world region.
* @param value the new world region
*/
public final void setWorldRegion(WorldRegion value)
public void setWorldRegion(WorldRegion value)
{
synchronized (_changingRegion)
{
@@ -145,7 +145,7 @@ public class Party
* returns all party members
* @return
*/
public final List<PlayerInstance> getPartyMembers()
public List<PlayerInstance> getPartyMembers()
{
return _members;
}
@@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model;
/**
* @version $Revision: 1.2.4.2 $ $Date: 2005/03/27 15:29:33 $
*/
public final class PledgeSkillLearn
public class PledgeSkillLearn
{
// these two build the primary key
private final int _id;
@@ -22,7 +22,7 @@ import org.l2jmobius.commons.concurrent.ThreadPool;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.network.serverpackets.RadarControl;
public final class Radar
public class Radar
{
private final PlayerInstance _player;
private final Vector<RadarMarker> _markers;
@@ -108,12 +108,12 @@ public class SiegeClan
}
}
public final int getClanId()
public int getClanId()
{
return _clanId;
}
public final List<NpcInstance> getFlag()
public List<NpcInstance> getFlag()
{
if (_flag == null)
{
@@ -712,42 +712,42 @@ public abstract class Skill
/**
* @return true if character should attack target after skill
*/
public final boolean nextActionIsAttack()
public boolean nextActionIsAttack()
{
return _nextActionIsAttack;
}
public final boolean isPotion()
public boolean isPotion()
{
return _ispotion;
}
public final int getArmorsAllowed()
public int getArmorsAllowed()
{
return _armorsAllowed;
}
public final int getConditionValue()
public int getConditionValue()
{
return _conditionValue;
}
public final SkillType getSkillType()
public SkillType getSkillType()
{
return _skillType;
}
public final boolean hasEffectWhileCasting()
public boolean hasEffectWhileCasting()
{
return _skillType == SkillType.SIGNET_CASTTIME;
}
public final BaseStats getSavevs()
public BaseStats getSavevs()
{
return _saveVs;
}
public final int getElement()
public int getElement()
{
return _element;
}
@@ -755,22 +755,22 @@ public abstract class Skill
/**
* @return the target type of the skill : SELF, PARTY, CLAN, PET...
*/
public final SkillTargetType getTargetType()
public SkillTargetType getTargetType()
{
return _targetType;
}
public final int getCondition()
public int getCondition()
{
return _condition;
}
public final boolean isOverhit()
public boolean isOverhit()
{
return _overhit;
}
public final boolean isSuicideAttack()
public boolean isSuicideAttack()
{
return _isSuicideAttack;
}
@@ -779,7 +779,7 @@ public abstract class Skill
* @param creature
* @return the power of the skill.
*/
public final double getPower(Creature creature)
public double getPower(Creature creature)
{
if ((_skillType == SkillType.FATALCOUNTER) && (creature != null))
{
@@ -788,37 +788,37 @@ public abstract class Skill
return _power;
}
public final double getPower()
public double getPower()
{
return _power;
}
public final int getEffectPoints()
public int getEffectPoints()
{
return _effectPoints;
}
public final String[] getNegateSkillTypes()
public String[] getNegateSkillTypes()
{
return _negateSkillTypes;
}
public final String[] getNegateEffectTypes()
public String[] getNegateEffectTypes()
{
return _negateEffectTypes;
}
public final float getNegatePower()
public float getNegatePower()
{
return _negatePower;
}
public final int getNegateId()
public int getNegateId()
{
return _negateId;
}
public final int getMagicLevel()
public int getMagicLevel()
{
return _magicLevel;
}
@@ -826,7 +826,7 @@ public abstract class Skill
/**
* @return Returns true to set static reuse.
*/
public final boolean isStaticReuse()
public boolean isStaticReuse()
{
return _staticReuse;
}
@@ -834,12 +834,12 @@ public abstract class Skill
/**
* @return Returns true to set static hittime.
*/
public final boolean isStaticHitTime()
public boolean isStaticHitTime()
{
return _staticHitTime;
}
public final int getLevelDepend()
public int getLevelDepend()
{
return _levelDepend;
}
@@ -847,7 +847,7 @@ public abstract class Skill
/**
* @return the additional effect power or base probability.
*/
public final int getEffectPower()
public int getEffectPower()
{
return _effectPower;
}
@@ -855,7 +855,7 @@ public abstract class Skill
/**
* @return the additional effect Id.
*/
public final int getEffectId()
public int getEffectId()
{
return _effectId;
}
@@ -863,7 +863,7 @@ public abstract class Skill
/**
* @return the additional effect level.
*/
public final int getEffectLvl()
public int getEffectLvl()
{
return _effectLvl;
}
@@ -871,7 +871,7 @@ public abstract class Skill
/**
* @return the additional effect skill type (ex : STUN, PARALYZE,...).
*/
public final SkillType getEffectType()
public SkillType getEffectType()
{
return _effectType;
}
@@ -879,7 +879,7 @@ public abstract class Skill
/**
* @return Returns the buffDuration.
*/
public final int getBuffDuration()
public int getBuffDuration()
{
return _buffDuration;
}
@@ -887,7 +887,7 @@ public abstract class Skill
/**
* @return Returns the castRange.
*/
public final int getCastRange()
public int getCastRange()
{
return _castRange;
}
@@ -895,7 +895,7 @@ public abstract class Skill
/**
* @return Returns the effectRange.
*/
public final int getEffectRange()
public int getEffectRange()
{
return _effectRange;
}
@@ -903,7 +903,7 @@ public abstract class Skill
/**
* @return Returns the hpConsume.
*/
public final int getHpConsume()
public int getHpConsume()
{
return _hpConsume;
}
@@ -911,7 +911,7 @@ public abstract class Skill
/**
* @return Returns the id.
*/
public final int getId()
public int getId()
{
return _id;
}
@@ -939,7 +939,7 @@ public abstract class Skill
/**
* @return the skill type (ex : BLEED, SLEEP, WATER...).
*/
public final Stats getStat()
public Stats getStat()
{
return _stat;
}
@@ -947,7 +947,7 @@ public abstract class Skill
/**
* @return Returns the itemConsume.
*/
public final int getItemConsume()
public int getItemConsume()
{
return _itemConsume;
}
@@ -955,7 +955,7 @@ public abstract class Skill
/**
* @return Returns the itemConsumeId.
*/
public final int getItemConsumeId()
public int getItemConsumeId()
{
return _itemConsumeId;
}
@@ -963,7 +963,7 @@ public abstract class Skill
/**
* @return Returns the itemConsume count over time.
*/
public final int getItemConsumeOT()
public int getItemConsumeOT()
{
return _itemConsumeOT;
}
@@ -971,7 +971,7 @@ public abstract class Skill
/**
* @return Returns the itemConsumeId over time.
*/
public final int getItemConsumeIdOT()
public int getItemConsumeIdOT()
{
return _itemConsumeIdOT;
}
@@ -979,7 +979,7 @@ public abstract class Skill
/**
* @return Returns the itemConsume count over time.
*/
public final int getItemConsumeSteps()
public int getItemConsumeSteps()
{
return _itemConsumeSteps;
}
@@ -987,7 +987,7 @@ public abstract class Skill
/**
* @return Returns the itemConsume count over time.
*/
public final int getTotalLifeTime()
public int getTotalLifeTime()
{
return _summonTotalLifeTime;
}
@@ -995,7 +995,7 @@ public abstract class Skill
/**
* @return Returns the itemConsume count over time.
*/
public final int getTimeLostIdle()
public int getTimeLostIdle()
{
return _summonTimeLostIdle;
}
@@ -1003,7 +1003,7 @@ public abstract class Skill
/**
* @return Returns the itemConsumeId over time.
*/
public final int getTimeLostActive()
public int getTimeLostActive()
{
return _summonTimeLostActive;
}
@@ -1011,7 +1011,7 @@ public abstract class Skill
/**
* @return Returns the itemConsume time in milliseconds.
*/
public final int getItemConsumeTime()
public int getItemConsumeTime()
{
return _itemConsumeTime;
}
@@ -1019,7 +1019,7 @@ public abstract class Skill
/**
* @return Returns the level.
*/
public final int getLevel()
public int getLevel()
{
return _level;
}
@@ -1027,7 +1027,7 @@ public abstract class Skill
/**
* @return Returns the magic.
*/
public final boolean isMagic()
public boolean isMagic()
{
return _magic;
}
@@ -1035,7 +1035,7 @@ public abstract class Skill
/**
* @return Returns the mpConsume.
*/
public final int getMpConsume()
public int getMpConsume()
{
return _mpConsume;
}
@@ -1043,7 +1043,7 @@ public abstract class Skill
/**
* @return Returns the mpInitialConsume.
*/
public final int getMpInitialConsume()
public int getMpInitialConsume()
{
return _mpInitialConsume;
}
@@ -1051,7 +1051,7 @@ public abstract class Skill
/**
* @return Returns the name.
*/
public final String getName()
public String getName()
{
return _name;
}
@@ -1059,18 +1059,18 @@ public abstract class Skill
/**
* @return Returns the reuseDelay.
*/
public final int getReuseDelay()
public int getReuseDelay()
{
return _reuseDelay;
}
@Deprecated
public final int getSkillTime()
public int getSkillTime()
{
return _hitTime;
}
public final int getHitTime()
public int getHitTime()
{
return _hitTime;
}
@@ -1078,32 +1078,32 @@ public abstract class Skill
/**
* @return Returns the coolTime.
*/
public final int getCoolTime()
public int getCoolTime()
{
return _coolTime;
}
public final int getSkillRadius()
public int getSkillRadius()
{
return _skillRadius;
}
public final boolean isActive()
public boolean isActive()
{
return _operateType == SkillOpType.OP_ACTIVE;
}
public final boolean isPassive()
public boolean isPassive()
{
return _operateType == SkillOpType.OP_PASSIVE;
}
public final boolean isToggle()
public boolean isToggle()
{
return _operateType == SkillOpType.OP_TOGGLE;
}
public final boolean isChance()
public boolean isChance()
{
return _operateType == SkillOpType.OP_CHANCE;
}
@@ -1113,77 +1113,77 @@ public abstract class Skill
return _chanceCondition;
}
public final boolean isDance()
public boolean isDance()
{
return _isDance;
}
public final int getNextDanceMpCost()
public int getNextDanceMpCost()
{
return _nextDanceCost;
}
public final float getSSBoost()
public float getSSBoost()
{
return _sSBoost;
}
public final int getAggroPoints()
public int getAggroPoints()
{
return _aggroPoints;
}
public final float getPvpMulti()
public float getPvpMulti()
{
return _pvpMulti;
}
public final boolean useSoulShot()
public boolean useSoulShot()
{
return (_skillType == SkillType.PDAM) || (_skillType == SkillType.STUN) || (_skillType == SkillType.CHARGEDAM) || (_skillType == SkillType.BLOW);
}
public final boolean useSpiritShot()
public boolean useSpiritShot()
{
return _magic;
}
public final boolean useFishShot()
public boolean useFishShot()
{
return (_skillType == SkillType.PUMPING) || (_skillType == SkillType.REELING);
}
public final int getWeaponsAllowed()
public int getWeaponsAllowed()
{
return _weaponsAllowed;
}
public final int getCrossLearnAdd()
public int getCrossLearnAdd()
{
return _addCrossLearn;
}
public final float getCrossLearnMul()
public float getCrossLearnMul()
{
return _mulCrossLearn;
}
public final float getCrossLearnRace()
public float getCrossLearnRace()
{
return _mulCrossLearnRace;
}
public final float getCrossLearnProf()
public float getCrossLearnProf()
{
return _mulCrossLearnProf;
}
public final boolean getCanLearn(ClassId cls)
public boolean getCanLearn(ClassId cls)
{
return (_canLearn == null) || _canLearn.contains(cls);
}
public final boolean canTeachBy(int npcId)
public boolean canTeachBy(int npcId)
{
return (_teachers == null) || _teachers.contains(npcId);
}
@@ -1193,7 +1193,7 @@ public abstract class Skill
return _minPledgeClass;
}
public final boolean isPvpSkill()
public boolean isPvpSkill()
{
switch (_skillType)
{
@@ -1231,37 +1231,37 @@ public abstract class Skill
}
}
public final boolean isOffensive()
public boolean isOffensive()
{
return _isOffensive;
}
public final boolean isHeroSkill()
public boolean isHeroSkill()
{
return _isHeroSkill;
}
public final int getNumCharges()
public int getNumCharges()
{
return _numCharges;
}
public final int getBaseCritRate()
public int getBaseCritRate()
{
return _baseCritRate;
}
public final int getLethalChance1()
public int getLethalChance1()
{
return _lethalEffect1;
}
public final int getLethalChance2()
public int getLethalChance2()
{
return _lethalEffect2;
}
public final boolean getDmgDirectlyToHP()
public boolean getDmgDirectlyToHP()
{
return _directHpDmg;
}
@@ -1276,7 +1276,7 @@ public abstract class Skill
return _triggeredId > 1;
}
public final boolean isSkillTypeOffensive()
public boolean isSkillTypeOffensive()
{
switch (_skillType)
{
@@ -1333,7 +1333,7 @@ public abstract class Skill
}
}
public final boolean getWeaponDependancy(Creature creature)
public boolean getWeaponDependancy(Creature creature)
{
if (getWeaponDependancy(creature, false))
{
@@ -1346,7 +1346,7 @@ public abstract class Skill
return false;
}
public final boolean getWeaponDependancy(Creature creature, boolean chance)
public boolean getWeaponDependancy(Creature creature, boolean chance)
{
final int weaponsAllowed = _weaponsAllowed;
// check to see if skill has a weapon dependency.
@@ -1411,7 +1411,7 @@ public abstract class Skill
return true;
}
public final WorldObject[] getTargetList(Creature creature, boolean onlyFirst)
public WorldObject[] getTargetList(Creature creature, boolean onlyFirst)
{
// Init to null the target of the skill
Creature target = null;
@@ -1449,7 +1449,7 @@ public abstract class Skill
* @param target
* @return
*/
public final WorldObject[] getTargetList(Creature creature, boolean onlyFirst, Creature target)
public WorldObject[] getTargetList(Creature creature, boolean onlyFirst, Creature target)
{
if (creature instanceof PlayerInstance)
{ // to avoid attacks during oly start period
@@ -2828,12 +2828,12 @@ public abstract class Skill
}// end switch
}
public final WorldObject[] getTargetList(Creature creature)
public WorldObject[] getTargetList(Creature creature)
{
return getTargetList(creature, false);
}
public final WorldObject getFirstOfTargetList(Creature creature)
public WorldObject getFirstOfTargetList(Creature creature)
{
WorldObject[] targets;
@@ -2845,7 +2845,7 @@ public abstract class Skill
return targets[0];
}
public final Func[] getStatFuncs(Effect effect, Creature creature)
public Func[] getStatFuncs(Effect effect, Creature creature)
{
if (!(creature instanceof PlayerInstance) && !(creature instanceof Attackable) && !(creature instanceof Summon))
{
@@ -2884,12 +2884,12 @@ public abstract class Skill
return (_effectTemplates != null) && (_effectTemplates.length > 0);
}
public final Effect[] getEffects(Creature effector, Creature effected)
public Effect[] getEffects(Creature effector, Creature effected)
{
return getEffects(effector, effected, false, false, false);
}
public final Effect[] getEffects(Creature effector, Creature effected, boolean ss, boolean sps, boolean bss)
public Effect[] getEffects(Creature effector, Creature effected, boolean ss, boolean sps, boolean bss)
{
if (isPassive())
{
@@ -2953,7 +2953,7 @@ public abstract class Skill
return effects.toArray(new Effect[effects.size()]);
}
public final Effect[] getEffectsSelf(Creature effector)
public Effect[] getEffectsSelf(Creature effector)
{
if (isPassive())
{
@@ -3017,7 +3017,7 @@ public abstract class Skill
return effects.toArray(new Effect[effects.size()]);
}
public final void attach(FuncTemplate f)
public void attach(FuncTemplate f)
{
if (_funcTemplates == null)
{
@@ -3036,7 +3036,7 @@ public abstract class Skill
}
}
public final void attach(EffectTemplate effect)
public void attach(EffectTemplate effect)
{
if (_effectTemplates == null)
{
@@ -3055,7 +3055,7 @@ public abstract class Skill
}
}
public final void attachSelf(EffectTemplate effect)
public void attachSelf(EffectTemplate effect)
{
if (_effectTemplatesSelf == null)
{
@@ -3097,7 +3097,7 @@ public abstract class Skill
return false;
}
public final void attach(Condition c, boolean itemOrWeapon)
public void attach(Condition c, boolean itemOrWeapon)
{
if (itemOrWeapon)
{
@@ -3161,7 +3161,7 @@ public abstract class Skill
/**
* @return Returns the _targetConsumeId.
*/
public final int getTargetConsumeId()
public int getTargetConsumeId()
{
return _targetConsumeId;
}
@@ -3169,7 +3169,7 @@ public abstract class Skill
/**
* @return Returns the targetConsume.
*/
public final int getTargetConsume()
public int getTargetConsume()
{
return _targetConsume;
}
@@ -3182,7 +3182,7 @@ public abstract class Skill
/**
* @return minimum skill/effect land rate (default is 1).
*/
public final int getMinChance()
public int getMinChance()
{
return _minChance;
}
@@ -3190,7 +3190,7 @@ public abstract class Skill
/**
* @return maximum skill/effect land rate (default is 99).
*/
public final int getMaxChance()
public int getMaxChance()
{
return _maxChance;
}
@@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model;
/**
* @version $Revision: 1.2.4.2 $ $Date: 2005/03/27 15:29:33 $
*/
public final class SkillLearn
public class SkillLearn
{
// these two build the primary key
private final int _id;
@@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model;
/**
* @version $Revision: 1.2.4.1 $ $Date: 2005/03/27 15:29:32 $
*/
public final class TradeItem
public class TradeItem
{
private int _objectId;
private int _itemId;
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
/**
* @version $Revision: 1.21.2.5.2.7 $ $Date: 2005/03/27 15:29:32 $
*/
public final class World
public class World
{
private static Logger LOGGER = Logger.getLogger(World.class.getName());
@@ -220,7 +220,7 @@ public final class World
* Added by Tempy - 08 Aug 05 Allows easy retrevial of all visible objects in world. -- do not use that fucntion, its unsafe!
* @return the all visible objects
*/
public final L2ObjectMap<WorldObject> getAllVisibleObjects()
public L2ObjectMap<WorldObject> getAllVisibleObjects()
{
return _allObjects;
}
@@ -230,7 +230,7 @@ public final class World
* <br>
* @return count off all World objects
*/
public final int getAllVisibleObjectsCount()
public int getAllVisibleObjectsCount()
{
return _allObjects.size();
}
@@ -97,27 +97,27 @@ public abstract class WorldObject
}
// Position - Should remove to fully move to WorldObjectPosition
public final void setXYZ(int x, int y, int z)
public void setXYZ(int x, int y, int z)
{
getPosition().setXYZ(x, y, z);
}
public final void setXYZInvisible(int x, int y, int z)
public void setXYZInvisible(int x, int y, int z)
{
getPosition().setXYZInvisible(x, y, z);
}
public final int getX()
public int getX()
{
return getPosition().getX();
}
public final int getY()
public int getY()
{
return getPosition().getY();
}
public final int getZ()
public int getZ()
{
return getPosition().getZ();
}
@@ -141,7 +141,7 @@ public abstract class WorldObject
* <li>Delete NPC/PC or Unsummon</li><BR>
* <BR>
*/
public final void decayMe()
public void decayMe()
{
// Remove the WorldObject from the world
_visible = false;
@@ -176,7 +176,7 @@ public abstract class WorldObject
* <BR>
* @param creature Player that pick up the item
*/
public final void pickupMe(Creature creature) // NOTE: Should move this function into ItemInstance because it does not apply to Creature
public void pickupMe(Creature creature) // NOTE: Should move this function into ItemInstance because it does not apply to Creature
{
WorldRegion oldregion = getPosition().getWorldRegion();
@@ -232,7 +232,7 @@ public abstract class WorldObject
* <li>Create Door</li>
* <li>Spawn : Monster, Minion, CTs, Summon...</li><BR>
*/
public final void spawnMe()
public void spawnMe()
{
synchronized (this)
{
@@ -254,7 +254,7 @@ public abstract class WorldObject
onSpawn();
}
public final void spawnMe(int x, int y, int z)
public void spawnMe(int x, int y, int z)
{
synchronized (this)
{
@@ -350,27 +350,27 @@ public abstract class WorldObject
return _knownList;
}
public final void setKnownList(WorldObjectKnownList value)
public void setKnownList(WorldObjectKnownList value)
{
_knownList = value;
}
public final String getName()
public String getName()
{
return _name;
}
public final void setName(String value)
public void setName(String value)
{
_name = value;
}
public final int getObjectId()
public int getObjectId()
{
return _objectId;
}
public final ObjectPoly getPoly()
public ObjectPoly getPoly()
{
if (_poly == null)
{
@@ -380,7 +380,7 @@ public abstract class WorldObject
return _poly;
}
public final ObjectPosition getPosition()
public ObjectPosition getPosition()
{
if (_position == null)
{
@@ -39,7 +39,7 @@ import org.l2jmobius.gameserver.model.zone.ZoneType;
import org.l2jmobius.gameserver.model.zone.type.PeaceZone;
import org.l2jmobius.gameserver.taskmanager.RandomAnimationTaskManager;
public final class WorldRegion
public class WorldRegion
{
private static Logger LOGGER = Logger.getLogger(WorldRegion.class.getName());
@@ -91,7 +91,7 @@ public class Attackable extends NpcInstance
* <li>damage : Number of damages that the attaker Creature gave to this Attackable</li><BR>
* <BR>
*/
public final class AggroInfo
public class AggroInfo
{
/** The attaker Creature concerned by this AggroInfo of this Attackable */
protected Creature _attacker;
@@ -198,7 +198,7 @@ public class Attackable extends NpcInstance
* <BR>
* <li>absorber : The attacker Creature concerned by this AbsorberInfo of this Attackable</li>
*/
public final class AbsorberInfo
public class AbsorberInfo
{
/** The attacker Creature concerned by this AbsorberInfo of this Attackable */
protected PlayerInstance _absorber;
@@ -254,7 +254,7 @@ public class Attackable extends NpcInstance
* This class is used to create item reward lists instead of creating item instances.<BR>
* <BR>
*/
public final class RewardItem
public class RewardItem
{
protected int _itemId;
protected int _count;
@@ -285,31 +285,31 @@ public class Attackable extends NpcInstance
* Use this to Remove Object from this Map This Should be Synchronized While Interacting over This Map - ie u cant Interacting and removing object at once
* @return
*/
public final Map<Creature, AggroInfo> getAggroList()
public Map<Creature, AggroInfo> getAggroList()
{
return _aggroList;
}
private boolean _isReturningToSpawnPoint = false;
public final boolean isReturningToSpawnPoint()
public boolean isReturningToSpawnPoint()
{
return _isReturningToSpawnPoint;
}
public final void setisReturningToSpawnPoint(boolean value)
public void setisReturningToSpawnPoint(boolean value)
{
_isReturningToSpawnPoint = value;
}
private boolean _canReturnToSpawnPoint = true;
public final boolean canReturnToSpawnPoint()
public boolean canReturnToSpawnPoint()
{
return _canReturnToSpawnPoint;
}
public final void setCanReturnToSpawnPoint(boolean value)
public void setCanReturnToSpawnPoint(boolean value)
{
_canReturnToSpawnPoint = value;
}
File diff suppressed because it is too large Load Diff
@@ -202,7 +202,7 @@ public abstract class Playable extends Creature
* Checks if is noblesse blessed.
* @return true, if is noblesse blessed
*/
public final boolean isNoblesseBlessed()
public boolean isNoblesseBlessed()
{
return _isNoblesseBlessed;
}
@@ -211,7 +211,7 @@ public abstract class Playable extends Creature
* Sets the checks if is noblesse blessed.
* @param value the new checks if is noblesse blessed
*/
public final void setIsNoblesseBlessed(boolean value)
public void setIsNoblesseBlessed(boolean value)
{
_isNoblesseBlessed = value;
}
@@ -220,7 +220,7 @@ public abstract class Playable extends Creature
* Start noblesse blessing.
* @param effect
*/
public final void startNoblesseBlessing(Effect effect)
public void startNoblesseBlessing(Effect effect)
{
_lastNoblessEffect = effect;
setIsNoblesseBlessed(true);
@@ -231,7 +231,7 @@ public abstract class Playable extends Creature
* Stop noblesse blessing.
* @param effect the effect
*/
public final void stopNoblesseBlessing(Effect effect)
public void stopNoblesseBlessing(Effect effect)
{
// to avoid multiple buffs effects removal
if ((effect != null) && (_lastNoblessEffect != effect))
@@ -261,7 +261,7 @@ public abstract class Playable extends Creature
* Gets the protection blessing.
* @return the protection blessing
*/
public final boolean getProtectionBlessing()
public boolean getProtectionBlessing()
{
return _ProtectionBlessing;
}
@@ -270,7 +270,7 @@ public abstract class Playable extends Creature
* Sets the protection blessing.
* @param value the new protection blessing
*/
public final void setProtectionBlessing(boolean value)
public void setProtectionBlessing(boolean value)
{
_ProtectionBlessing = value;
}
@@ -318,7 +318,7 @@ public abstract class Playable extends Creature
* Checks if is phoenix blessed.
* @return true, if is phoenix blessed
*/
public final boolean isPhoenixBlessed()
public boolean isPhoenixBlessed()
{
return _isPhoenixBlessed;
}
@@ -327,7 +327,7 @@ public abstract class Playable extends Creature
* Sets the checks if is phoenix blessed.
* @param value the new checks if is phoenix blessed
*/
public final void setIsPhoenixBlessed(boolean value)
public void setIsPhoenixBlessed(boolean value)
{
_isPhoenixBlessed = value;
}
@@ -336,7 +336,7 @@ public abstract class Playable extends Creature
* Start phoenix blessing.
* @param effect
*/
public final void startPhoenixBlessing(Effect effect)
public void startPhoenixBlessing(Effect effect)
{
_lastPhoenixBlessedEffect = effect;
setIsPhoenixBlessed(true);
@@ -347,7 +347,7 @@ public abstract class Playable extends Creature
* Stop phoenix blessing.
* @param effect the effect
*/
public final void stopPhoenixBlessing(Effect effect)
public void stopPhoenixBlessing(Effect effect)
{
if ((effect != null) && (_lastPhoenixBlessedEffect != effect))
{
@@ -397,7 +397,7 @@ public abstract class Playable extends Creature
* Gets the charm of luck.
* @return the charm of luck
*/
public final boolean getCharmOfLuck()
public boolean getCharmOfLuck()
{
return _getCharmOfLuck;
}
@@ -406,7 +406,7 @@ public abstract class Playable extends Creature
* Sets the charm of luck.
* @param value the new charm of luck
*/
public final void setCharmOfLuck(boolean value)
public void setCharmOfLuck(boolean value)
{
_getCharmOfLuck = value;
}
@@ -415,7 +415,7 @@ public abstract class Playable extends Creature
* Start charm of luck.
* @param effect
*/
public final void startCharmOfLuck(Effect effect)
public void startCharmOfLuck(Effect effect)
{
setCharmOfLuck(true);
updateAbnormalEffect();
@@ -426,7 +426,7 @@ public abstract class Playable extends Creature
* Stop charm of luck.
* @param effect the effect
*/
public final void stopCharmOfLuck(Effect effect)
public void stopCharmOfLuck(Effect effect)
{
if ((effect != null) && (_lastCharmOfLuckEffect != effect))
{
@@ -111,7 +111,7 @@ public abstract class Summon extends Playable
}
@Override
public final SummonKnownList getKnownList()
public SummonKnownList getKnownList()
{
if ((super.getKnownList() == null) || !(super.getKnownList() instanceof SummonKnownList))
{
@@ -267,22 +267,22 @@ public abstract class Summon extends Playable
return ExperienceData.getInstance().getExpForLevel(getLevel() + 1);
}
public final int getKarma()
public int getKarma()
{
return _owner != null ? _owner.getKarma() : 0;
}
public final byte getPvpFlag()
public byte getPvpFlag()
{
return _owner != null ? _owner.getPvpFlag() : 0;
}
public final PlayerInstance getOwner()
public PlayerInstance getOwner()
{
return _owner;
}
public final int getNpcId()
public int getNpcId()
{
return getTemplate().npcId;
}
@@ -317,22 +317,22 @@ public abstract class Summon extends Playable
_pkKills = pkKills;
}
public final int getPkKills()
public int getPkKills()
{
return _pkKills;
}
public final int getMaxLoad()
public int getMaxLoad()
{
return _maxLoad;
}
public final int getSoulShotsPerHit()
public int getSoulShotsPerHit()
{
return _soulShotsPerHit;
}
public final int getSpiritShotsPerHit()
public int getSpiritShotsPerHit()
{
return _spiritShotsPerHit;
}
@@ -36,42 +36,42 @@ public class PlayerAppearance
_sex = Sex;
}
public final byte getFace()
public byte getFace()
{
return _face;
}
public final void setFace(int value)
public void setFace(int value)
{
_face = (byte) value;
}
public final byte getHairColor()
public byte getHairColor()
{
return _hairColor;
}
public final void setHairColor(int value)
public void setHairColor(int value)
{
_hairColor = (byte) value;
}
public final byte getHairStyle()
public byte getHairStyle()
{
return _hairStyle;
}
public final void setHairStyle(int value)
public void setHairStyle(int value)
{
_hairStyle = (byte) value;
}
public final boolean getSex()
public boolean getSex()
{
return _sex;
}
public final void setSex(boolean isfemale)
public void setSex(boolean isfemale)
{
_sex = isfemale;
}
@@ -28,7 +28,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
* <BR>
* @version $Revision: 1.11.2.1.2.7 $ $Date: 2005/04/06 16:13:40 $
*/
public final class ArtefactInstance extends NpcInstance
public class ArtefactInstance extends NpcInstance
{
/**
* Constructor of ArtefactInstance (use Creature and NpcInstance constructor).<BR>
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
public final class AuctioneerInstance extends FolkInstance
public class AuctioneerInstance extends FolkInstance
{
private static final int COND_ALL_FALSE = 0;
private static final int COND_BUSY_BECAUSE_OF_SIEGE = 1;
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
/**
* @version $Revision: 1.15.2.10.2.16 $ $Date: 2005/04/06 16:13:40 $
*/
public final class BabyPetInstance extends PetInstance
public class BabyPetInstance extends PetInstance
{
protected Skill _weakHeal;
protected Skill _strongHeal;
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
* The Class CastleTeleporterInstance.
* @author Kerberos
*/
public final class CastleTeleporterInstance extends NpcInstance
public class CastleTeleporterInstance extends NpcInstance
{
public static final Logger LOGGER = Logger.getLogger(CastleTeleporterInstance.class.getName());
@@ -28,7 +28,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
/**
* This class manages all chest.
*/
public final class ChestInstance extends MonsterInstance
public class ChestInstance extends MonsterInstance
{
private volatile boolean _isInteracted;
private volatile boolean _specialDrop;
@@ -1003,7 +1003,7 @@ public class ClanHallManagerInstance extends FolkInstance
* Return the PledgeHall this NpcInstance belongs to.
* @return the clan hall
*/
public final ClanHall getClanHall()
public ClanHall getClanHall()
{
if (_clanHallId < 0)
{
@@ -31,7 +31,7 @@ import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
public final class ClassMasterInstance extends FolkInstance
public class ClassMasterInstance extends FolkInstance
{
private static ClassMasterInstance _instance;
@@ -51,7 +51,7 @@ public class CommanderInstance extends Attackable
}
@Override
public final CommanderKnownList getKnownList()
public CommanderKnownList getKnownList()
{
if ((super.getKnownList() == null) || !(super.getKnownList() instanceof CommanderKnownList))
{
@@ -122,7 +122,7 @@ public class ControlTowerInstance extends NpcInstance
getGuards().add(guard);
}
public final List<Spawn> getGuards()
public List<Spawn> getGuards()
{
if (_guards == null)
{
@@ -303,7 +303,7 @@ public class CubicInstance
* @param skill the skill
* @return the m critical hit
*/
public final int getMCriticalHit(Creature target, Skill skill)
public int getMCriticalHit(Creature target, Skill skill)
{
// TODO: Temporary now mcrit for cubics is the baseMCritRate of its owner
return _owner.getTemplate().baseMCritRate;
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.templates.item.WeaponType;
* This class manages Npc Polymorph into player instances, they look like regular players. This effect will show up on all clients.
* @author Darki699
*/
public final class CustomNpcInstance
public class CustomNpcInstance
{
private boolean _allowRandomWeapons = true; // Default value
private boolean _allowRandomClass = true; // Default value
@@ -105,7 +105,7 @@ public final class CustomNpcInstance
/**
* @return the custom npc's name, or the original npc name if no custom name is provided
*/
public final String getName()
public String getName()
{
return _name == null ? _NpcInstance.getName() : _name;
}
@@ -113,7 +113,7 @@ public final class CustomNpcInstance
/**
* @return the custom npc's title, or the original npc title if no custom title is provided
*/
public final String getTitle()
public String getTitle()
{
return _title == null ? _NpcInstance.getTitle() : _NpcInstance.isChampion() ? "The Champion" + _title : _title;
}
@@ -121,7 +121,7 @@ public final class CustomNpcInstance
/**
* @return the npc's karma or aggro range if he has any...
*/
public final int getKarma()
public int getKarma()
{
return _int[1] > 0 ? _int[1] : _NpcInstance.getAggroRange();
}
@@ -129,7 +129,7 @@ public final class CustomNpcInstance
/**
* @return the clan Id
*/
public final int getClanId()
public int getClanId()
{
return _int[2];
}
@@ -137,7 +137,7 @@ public final class CustomNpcInstance
/**
* @return the ally Id
*/
public final int getAllyId()
public int getAllyId()
{
return _int[3];
}
@@ -145,7 +145,7 @@ public final class CustomNpcInstance
/**
* @return the clan crest Id
*/
public final int getClanCrestId()
public int getClanCrestId()
{
return _int[4];
}
@@ -153,7 +153,7 @@ public final class CustomNpcInstance
/**
* @return the ally crest Id
*/
public final int getAllyCrestId()
public int getAllyCrestId()
{
return _int[5];
}
@@ -161,7 +161,7 @@ public final class CustomNpcInstance
/**
* @return the Race ordinal
*/
public final int getRace()
public int getRace()
{
return _int[6];
}
@@ -169,7 +169,7 @@ public final class CustomNpcInstance
/**
* @return the class id, e.g.: fighter, warrior, mystic muse...
*/
public final int getClassId()
public int getClassId()
{
return _int[7];
}
@@ -177,7 +177,7 @@ public final class CustomNpcInstance
/**
* @return the enchant level of the equipped weapon, if one is equipped (max = 127)
*/
public final int getEnchantWeapon()
public int getEnchantWeapon()
{
return (PAPERDOLL_RHAND() == 0) || (getCursedWeaponLevel() != 0) ? 0 : _int[8] > 127 ? 127 : _int[8];
}
@@ -186,7 +186,7 @@ public final class CustomNpcInstance
* @return the pledge class identifier, e.g. vagabond, baron, marquiz
* @remark Champion mobs are always Marquiz
*/
public final int getPledgeClass()
public int getPledgeClass()
{
return _NpcInstance.isChampion() ? 8 : _int[9];
}
@@ -194,7 +194,7 @@ public final class CustomNpcInstance
/**
* @return the cursed weapon level, if one is equipped
*/
public final int getCursedWeaponLevel()
public int getCursedWeaponLevel()
{
return (PAPERDOLL_RHAND() == 0) || (_int[8] > 0) ? 0 : _int[10];
}
@@ -202,7 +202,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the item in the right hand, if a custom item is not equipped the value returned is the original npc right-hand weapon id
*/
public final int PAPERDOLL_RHAND()
public int PAPERDOLL_RHAND()
{
return _int[11] != 0 ? _int[11] : _NpcInstance.getRightHandItem();
}
@@ -210,7 +210,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the item in the left hand, if a custom item is not equipped the value returned is the original npc left-hand weapon id. Setting this value _int[12] = -1 will not allow a npc to have anything in the left hand
*/
public final int PAPERDOLL_LHAND()
public int PAPERDOLL_LHAND()
{
return _int[12] > 0 ? _int[12] : _int[12] == 0 ? _NpcInstance.getLeftHandItem() : 0;
}
@@ -218,7 +218,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the gloves
*/
public final int PAPERDOLL_GLOVES()
public int PAPERDOLL_GLOVES()
{
return _int[13];
}
@@ -226,7 +226,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the chest armor
*/
public final int PAPERDOLL_CHEST()
public int PAPERDOLL_CHEST()
{
return _int[14];
}
@@ -234,7 +234,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the leg armor, or 0 if wearing a full armor
*/
public final int PAPERDOLL_LEGS()
public int PAPERDOLL_LEGS()
{
return _int[15];
}
@@ -242,7 +242,7 @@ public final class CustomNpcInstance
/**
* @return the item id for feet armor
*/
public final int PAPERDOLL_FEET()
public int PAPERDOLL_FEET()
{
return _int[16];
}
@@ -250,7 +250,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the 1st hair slot, or all hair
*/
public final int PAPERDOLL_HAIR()
public int PAPERDOLL_HAIR()
{
return _int[17];
}
@@ -258,7 +258,7 @@ public final class CustomNpcInstance
/**
* @return the item id for the 2nd hair slot
*/
public final int PAPERDOLL_HAIR2()
public int PAPERDOLL_HAIR2()
{
return _int[18];
}
@@ -266,7 +266,7 @@ public final class CustomNpcInstance
/**
* @return the npc's hair style appearance
*/
public final int getHairStyle()
public int getHairStyle()
{
return _int[19];
}
@@ -274,7 +274,7 @@ public final class CustomNpcInstance
/**
* @return the npc's hair color appearance
*/
public final int getHairColor()
public int getHairColor()
{
return _int[20];
}
@@ -282,7 +282,7 @@ public final class CustomNpcInstance
/**
* @return the npc's face appearance
*/
public final int getFace()
public int getFace()
{
return _int[21];
}
@@ -290,7 +290,7 @@ public final class CustomNpcInstance
/**
* @return the npc's name color (in hexadecimal), 0xFFFFFF is the default value
*/
public final int nameColor()
public int nameColor()
{
return _int[22] == 0 ? 0xFFFFFF : _int[22];
}
@@ -298,7 +298,7 @@ public final class CustomNpcInstance
/**
* @return the npc's title color (in hexadecimal), 0xFFFF77 is the default value
*/
public final int titleColor()
public int titleColor()
{
return _int[23] == 0 ? 0xFFFF77 : _int[23];
}
@@ -306,7 +306,7 @@ public final class CustomNpcInstance
/**
* @return is npc in pvp mode?
*/
public final boolean getPvpFlag()
public boolean getPvpFlag()
{
return _boolean[0];
}
@@ -314,7 +314,7 @@ public final class CustomNpcInstance
/**
* @return is npc in pvp mode?
*/
public final int getHeading()
public int getHeading()
{
return _NpcInstance.getHeading();
}
@@ -322,7 +322,7 @@ public final class CustomNpcInstance
/**
* @return true if npc is a noble
*/
public final boolean isNoble()
public boolean isNoble()
{
return _boolean[1];
}
@@ -331,7 +331,7 @@ public final class CustomNpcInstance
* @return true if hero glow should show up
* @remark A Champion mob will always have hero glow
*/
public final boolean isHero()
public boolean isHero()
{
return _NpcInstance.isChampion() ? true : _boolean[2];
}
@@ -343,7 +343,7 @@ public final class CustomNpcInstance
* @FEMALE value=1
* @MAYBE value=2 % chance for the <b>Entire Template</b> to become male or female (it's a maybe value) If female, all template will be female, if Male, all template will be male
*/
public final boolean isFemaleSex()
public boolean isFemaleSex()
{
return _boolean[3];
}
@@ -77,7 +77,7 @@ public class DoorInstance extends Creature
private ClanHall _clanHall;
protected int _autoActionDelay = -1;
private ScheduledFuture<?> _autoActionTask;
public final Territory pos;
public Territory pos;
/**
* This class may be created only by Creature and only for AI.
@@ -205,7 +205,7 @@ public class DoorInstance extends Creature
}
@Override
public final DoorKnownList getKnownList()
public DoorKnownList getKnownList()
{
if ((super.getKnownList() == null) || !(super.getKnownList() instanceof DoorKnownList))
{
@@ -216,7 +216,7 @@ public class DoorInstance extends Creature
}
@Override
public final DoorStat getStat()
public DoorStat getStat()
{
if ((super.getStat() == null) || !(super.getStat() instanceof DoorStat))
{
@@ -227,7 +227,7 @@ public class DoorInstance extends Creature
}
@Override
public final DoorStatus getStatus()
public DoorStatus getStatus()
{
if ((super.getStatus() == null) || !(super.getStatus() instanceof DoorStatus))
{
@@ -241,13 +241,13 @@ public class DoorInstance extends Creature
* Checks if is unlockable.
* @return true, if is unlockable
*/
public final boolean isUnlockable()
public boolean isUnlockable()
{
return _unlockable;
}
@Override
public final int getLevel()
public int getLevel()
{
return 1;
}
@@ -326,7 +326,7 @@ public class DoorInstance extends Creature
* Gets the castle.
* @return the castle
*/
public final Castle getCastle()
public Castle getCastle()
{
if (_castleIndex < 0)
{
@@ -345,7 +345,7 @@ public class DoorInstance extends Creature
* Gets the fort.
* @return the fort
*/
public final Fort getFort()
public Fort getFort()
{
if (_fortIndex < 0)
{
@@ -674,7 +674,7 @@ public class DoorInstance extends Creature
closeMe();
}
public final void closeMe()
public void closeMe()
{
synchronized (this)
{
@@ -689,7 +689,7 @@ public class DoorInstance extends Creature
broadcastStatusUpdate();
}
public final void openMe()
public void openMe()
{
synchronized (this)
{
@@ -47,7 +47,7 @@ public class DoormanInstance extends FolkInstance
super(objectID, template);
}
public final ClanHall getClanHall()
public ClanHall getClanHall()
{
if (_clanHall == null)
{
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ExColosseumFenceInfo;
/**
* @author HoridoJoho / FBIagent
*/
public final class FenceInstance extends WorldObject
public class FenceInstance extends WorldObject
{
private final int _xMin;
private final int _xMax;
@@ -34,7 +34,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
* Festival of Darkness Guide (Seven Signs).
* @author Tempy
*/
public final class FestivalGuideInstance extends FolkInstance
public class FestivalGuideInstance extends FolkInstance
{
protected int _festivalType;
protected int _festivalOracle;
@@ -34,7 +34,7 @@ public class FriendlyMobInstance extends Attackable
}
@Override
public final FriendlyMobKnownList getKnownList()
public FriendlyMobKnownList getKnownList()
{
if ((super.getKnownList() == null) || !(super.getKnownList() instanceof FriendlyMobKnownList))
{
@@ -20,7 +20,7 @@ import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.taskmanager.DecayTaskManager;
import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
public final class GourdInstance extends MonsterInstance
public class GourdInstance extends MonsterInstance
{
private String _name;
private byte _nectar = 0;
@@ -32,7 +32,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
* This class manages all Grand Bosses.
* @version $Revision: 1.0.0.0 $ $Date: 2006/06/16 $
*/
public final class GrandBossInstance extends MonsterInstance
public class GrandBossInstance extends MonsterInstance
{
/**
* Constructor for GrandBossInstance. This represent all grandbosses.
@@ -37,7 +37,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
* <BR>
* @version $Revision: 1.11.2.1.2.7 $ $Date: 2005/04/06 16:13:40 $
*/
public final class GuardInstance extends Attackable
public class GuardInstance extends Attackable
{
private static final int RETURN_INTERVAL = 60000;
private int _homeX;
@@ -77,7 +77,7 @@ public final class GuardInstance extends Attackable
}
@Override
public final GuardKnownList getKnownList()
public GuardKnownList getKnownList()
{
if ((super.getKnownList() == null) || !(super.getKnownList() instanceof GuardKnownList))
{
@@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.templates.creatures.NpcTemplate;
* <BR>
* @version $Revision: 1.11.2.1.2.7 $ $Date: 2005/04/06 16:13:40 $
*/
public final class GuardNoHTMLInstance extends Attackable
public class GuardNoHTMLInstance extends Attackable
{
private static final int RETURN_INTERVAL = 60000;
private int _homeX;
@@ -75,7 +75,7 @@ public final class GuardNoHTMLInstance extends Attackable
}
@Override
public final GuardNoHTMLKnownList getKnownList()
public GuardNoHTMLKnownList getKnownList()
{
if ((super.getKnownList() == null) || !(super.getKnownList() instanceof GuardNoHTMLKnownList))
{

Some files were not shown because too many files have changed in this diff Show More