This is why Lombok exists

This commit is contained in:
ZeroEpoch1969 2018-07-24 22:52:49 -07:00
parent 65bd609952
commit c0b43f26ea
No known key found for this signature in database
GPG Key ID: A7BAB4E14F089CF3
8 changed files with 2 additions and 144 deletions

View File

@ -171,11 +171,6 @@ public class Admin implements ConfigLoadable, ConfigSavable, Validatable
}
}
public String getLoginMessage()
{
return this.loginMessage;
}
public void removeIp(String ip)
{
if (ips.contains(ip))
@ -218,64 +213,4 @@ public class Admin implements ConfigLoadable, ConfigSavable, Validatable
&& !ips.isEmpty()
&& lastLogin != null;
}
public boolean isActive()
{
return this.active;
}
public String getConfigKey()
{
return this.configKey;
}
public String getName()
{
return this.name;
}
public void setName(final String name)
{
this.name = name;
}
public Rank getRank()
{
return this.rank;
}
public void setRank(final Rank rank)
{
this.rank = rank;
}
public List<String> getIps()
{
return this.ips;
}
public Date getLastLogin()
{
return this.lastLogin;
}
public void setLastLogin(final Date lastLogin)
{
this.lastLogin = lastLogin;
}
public void setLoginMessage(final String loginMessage)
{
this.loginMessage = loginMessage;
}
public String getDiscordID()
{
return this.discordID;
}
public void setDiscordID(String discordID)
{
this.discordID = discordID;
}
}

View File

@ -218,26 +218,6 @@ public class CageData
}
}
public boolean isCaged()
{
return this.caged;
}
public Location getLocation()
{
return this.location;
}
public Material getOuterMaterial()
{
return this.outerMaterial;
}
public Material getInnerMaterial()
{
return this.innerMaterial;
}
private static class BlockData
{

View File

@ -32,11 +32,6 @@ public class Freezer extends FreedomService
{
}
public boolean isGlobalFreeze()
{
return this.globalFreeze;
}
public void setGlobalFreeze(boolean frozen)
{
this.globalFreeze = frozen;

View File

@ -131,41 +131,6 @@ public class FPlayer
return orbitStrength;
}
public boolean isInvSee()
{
return invSee;
}
public void setInvSee(boolean toggle)
{
this.invSee = toggle;
}
public boolean isEditBlocked()
{
return editBlocked;
}
public void setEditBlocked(boolean toggle)
{
this.editBlocked = toggle;
}
public boolean isPvpBlocked()
{
return pvpBlocked;
}
public CageData getCageData()
{
return cageData;
}
public void setPvpBlocked(boolean toggle)
{
this.pvpBlocked = toggle;
}
public boolean isFuckOff()
{
return fuckoffRadius > 0;
@ -378,11 +343,6 @@ public class FPlayer
this.inAdminchat = inAdminchat;
}
public FreezeData getFreezeData()
{
return freezeData;
}
public boolean inAdminChat()
{

View File

@ -82,11 +82,6 @@ public class VPlayer implements ConfigLoadable, ConfigSavable, Validatable
return ips.remove(ip);
}
public void setDiscordId(final String discordId)
{
this.discordId = discordId;
}
@Override
public boolean isValid()
{

View File

@ -27,7 +27,6 @@ public final class AdminWorld extends CustomWorld
private static final long CACHE_CLEAR_FREQUENCY = 30L * 1000L; //30 seconds, milliseconds
private static final long TP_COOLDOWN_TIME = 500L; //0.5 seconds, milliseconds
private static final String GENERATION_PARAMETERS = ConfigEntry.FLATLANDS_GENERATE_PARAMS.getString();
private static final String WORLD_NAME = "adminworld";
//
private final Map<Player, Long> teleportCooldown = new HashMap<>();
private final Map<CommandSender, Boolean> accessCache = new HashMap<>();
@ -56,7 +55,7 @@ public final class AdminWorld extends CustomWorld
@Override
protected World generateWorld()
{
final WorldCreator worldCreator = new WorldCreator(WORLD_NAME);
final WorldCreator worldCreator = new WorldCreator(getName());
worldCreator.generateStructures(false);
worldCreator.type(WorldType.NORMAL);
worldCreator.environment(World.Environment.NORMAL);

View File

@ -23,7 +23,6 @@ public class Flatlands extends CustomWorld
{
super("flatlands");
}
private static final String WORLD_NAME = "flatlands";
@Override
protected World generateWorld()
@ -90,8 +89,4 @@ public class Flatlands extends CustomWorld
}
}
public String getName()
{
return this.WORLD_NAME;
}
}

View File

@ -28,7 +28,6 @@ public final class MasterBuilderWorld extends CustomWorld
//
private WorldWeather weather = WorldWeather.OFF;
private WorldTime time = WorldTime.INHERIT;
private static final String WORLD_NAME = "masterbuilderworld";
public MasterBuilderWorld()
{
@ -44,7 +43,7 @@ public final class MasterBuilderWorld extends CustomWorld
@Override
protected World generateWorld()
{
final WorldCreator worldCreator = new WorldCreator(WORLD_NAME);
final WorldCreator worldCreator = new WorldCreator(getName());
worldCreator.generateStructures(false);
worldCreator.type(WorldType.NORMAL);
worldCreator.environment(World.Environment.NORMAL);