Code style changes.

This commit is contained in:
MobiusDev
2016-04-26 19:21:19 +00:00
parent 6a13705766
commit fc070c9238
768 changed files with 3338 additions and 4252 deletions

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IDecayable
{
public boolean decayMe();
boolean decayMe();
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IDeletable
{
public boolean deleteMe();
boolean deleteMe();
}

View File

@ -26,22 +26,22 @@ public interface IEventListener
/**
* @return {@code true} if player is on event, {@code false} otherwise.
*/
public boolean isOnEvent();
boolean isOnEvent();
/**
* @return {@code true} if player is blocked from leaving the game, {@code false} otherwise.
*/
public boolean isBlockingExit();
boolean isBlockingExit();
/**
* @return {@code true} if player is blocked from receiving death penalty upon death, {@code false} otherwise.
*/
public boolean isBlockingDeathPenalty();
boolean isBlockingDeathPenalty();
/**
* @return {@code true} if player can revive after death, {@code false} otherwise.
*/
public boolean canRevive();
boolean canRevive();
public L2PcInstance getPlayer();
L2PcInstance getPlayer();
}

View File

@ -22,5 +22,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IIdentifiable
{
public int getId();
int getId();
}

View File

@ -26,35 +26,35 @@ public interface ILocational
* Gets the X coordinate of this object.
* @return the X coordinate
*/
public int getX();
int getX();
/**
* Gets the Y coordinate of this object.
* @return the current Y coordinate
*/
public int getY();
int getY();
/**
* Gets the Z coordinate of this object.
* @return the current Z coordinate
*/
public int getZ();
int getZ();
/**
* Gets the heading of this object.
* @return the current heading
*/
public int getHeading();
int getHeading();
/**
* Gets the instance zone ID of this object.
* @return the ID of the instance zone this object is currently in (0 - not in any instance)
*/
public int getInstanceId();
int getInstanceId();
/**
* Gets this object's location.
* @return a {@link ILocational} object containing the current position of this object
*/
public ILocational getLocation();
ILocational getLocation();
}

View File

@ -22,5 +22,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface INamable
{
public String getName();
String getName();
}

View File

@ -25,24 +25,24 @@ import java.time.Duration;
*/
public interface IParserAdvUtils extends IParserUtils
{
public boolean getBoolean(String key);
boolean getBoolean(String key);
public byte getByte(String key);
byte getByte(String key);
public short getShort(String key);
short getShort(String key);
public int getInt(String key);
int getInt(String key);
public long getLong(String key);
long getLong(String key);
public float getFloat(String key);
float getFloat(String key);
public double getDouble(String key);
double getDouble(String key);
public String getString(String key);
String getString(String key);
public Duration getDuration(String key);
Duration getDuration(String key);
public <T extends Enum<T>> T getEnum(String key, Class<T> clazz);
<T extends Enum<T>> T getEnum(String key, Class<T> clazz);
}

View File

@ -25,23 +25,23 @@ import java.time.Duration;
*/
public interface IParserUtils
{
public boolean getBoolean(String key, boolean defaultValue);
boolean getBoolean(String key, boolean defaultValue);
public byte getByte(String key, byte defaultValue);
byte getByte(String key, byte defaultValue);
public short getShort(String key, short defaultValue);
short getShort(String key, short defaultValue);
public int getInt(String key, int defaultValue);
int getInt(String key, int defaultValue);
public long getLong(String key, long defaultValue);
long getLong(String key, long defaultValue);
public float getFloat(String key, float defaultValue);
float getFloat(String key, float defaultValue);
public double getDouble(String key, double defaultValue);
double getDouble(String key, double defaultValue);
public String getString(String key, String defaultValue);
String getString(String key, String defaultValue);
public Duration getDuration(String key, Duration defaultValue);
Duration getDuration(String key, Duration defaultValue);
public <T extends Enum<T>> T getEnum(String key, Class<T> clazz, T defaultValue);
<T extends Enum<T>> T getEnum(String key, Class<T> clazz, T defaultValue);
}

View File

@ -28,19 +28,19 @@ public interface IPositionable extends ILocational
* Sets the X coordinate of this object.
* @param x the new X coordinate
*/
public void setX(int x);
void setX(int x);
/**
* Sets the Y coordinate of this object.
* @param y the new Y coordinate
*/
public void setY(int y);
void setY(int y);
/**
* Sets the Z coordinate of this object.
* @param z the new Z coordinate
*/
public void setZ(int z);
void setZ(int z);
/**
* Sets all three coordinates of this object.
@ -48,29 +48,29 @@ public interface IPositionable extends ILocational
* @param y the new Y coordinate
* @param z the new Z coordinate
*/
public void setXYZ(int x, int y, int z);
void setXYZ(int x, int y, int z);
/**
* Sets all three coordinates of this object.
* @param loc the object whose coordinates to use
*/
public void setXYZ(ILocational loc);
void setXYZ(ILocational loc);
/**
* Sets the heading of this object.
* @param heading the new heading
*/
public void setHeading(int heading);
void setHeading(int heading);
/**
* Changes the instance zone ID of this object.
* @param instanceId the ID of the instance zone to put this object in (0 - not in any instance)
*/
public void setInstanceId(int instanceId);
void setInstanceId(int instanceId);
/**
* Changes the location of this object.
* @param loc the new location
*/
public void setLocation(Location loc);
void setLocation(Location loc);
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IRestorable
{
public boolean restoreMe();
boolean restoreMe();
}

View File

@ -25,11 +25,11 @@ import com.l2jmobius.gameserver.model.skills.Skill;
*/
public interface ISkillsHolder
{
public Map<Integer, Skill> getSkills();
Map<Integer, Skill> getSkills();
public Skill addSkill(Skill skill);
Skill addSkill(Skill skill);
public Skill getKnownSkill(int skillId);
Skill getKnownSkill(int skillId);
public int getSkillLevel(int skillId);
int getSkillLevel(int skillId);
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface ISpawnable
{
public boolean spawnMe();
boolean spawnMe();
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IStorable
{
public boolean storeMe();
boolean storeMe();
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IUniqueId
{
public int getObjectId();
int getObjectId();
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IUpdatable
{
public boolean updateMe();
boolean updateMe();
}

View File

@ -21,5 +21,5 @@ package com.l2jmobius.gameserver.model.interfaces;
*/
public interface IUpdateTypeComponent
{
public int getMask();
int getMask();
}