Unnecessary enum modifiers

This commit is contained in:
thatsIch
2015-03-26 11:21:55 +01:00
parent ec05bd994c
commit d8f452b665
8 changed files with 16 additions and 15 deletions
@@ -31,7 +31,7 @@ public enum FuzzyMode
final public float breakPoint; final public float breakPoint;
final public float percentage; final public float percentage;
private FuzzyMode(float p) { FuzzyMode( float p ) {
this.percentage = p; this.percentage = p;
this.breakPoint = p / 100.0f; this.breakPoint = p / 100.0f;
} }
@@ -32,7 +32,7 @@ public enum PowerUnits
RF("gui.appliedenergistics2.units.thermalexpansion"), // ThermalExpansion - Redstone Flux RF("gui.appliedenergistics2.units.thermalexpansion"), // ThermalExpansion - Redstone Flux
MK("gui.appliedenergistics2.units.mekanism"); // Mekanism - Joules MK("gui.appliedenergistics2.units.mekanism"); // Mekanism - Joules
private PowerUnits(String un) { PowerUnits( String un ) {
this.unlocalizedName = un; this.unlocalizedName = un;
} }
+1 -1
View File
@@ -62,7 +62,7 @@ public enum Settings
return this.values; return this.values;
} }
private Settings( EnumSet set ) Settings( EnumSet set )
{ {
if ( set == null || set.isEmpty() ) if ( set == null || set.isEmpty() )
throw new RuntimeException( "Invalid configuration." ); throw new RuntimeException( "Invalid configuration." );
+1 -1
View File
@@ -46,7 +46,7 @@ public enum Upgrades
public final int myTier; public final int myTier;
public final HashMap<ItemStack, Integer> supportedMax = new HashMap<ItemStack, Integer>(); public final HashMap<ItemStack, Integer> supportedMax = new HashMap<ItemStack, Integer>();
private Upgrades( int tier ) Upgrades( int tier )
{ {
this.myTier = tier; this.myTier = tier;
} }
@@ -33,7 +33,7 @@ public enum CableRenderMode
public final boolean transparentFacades; public final boolean transparentFacades;
public final boolean opaqueFacades; public final boolean opaqueFacades;
private CableRenderMode(boolean hideFacades) { CableRenderMode( boolean hideFacades ) {
this.transparentFacades = hideFacades; this.transparentFacades = hideFacades;
this.opaqueFacades = !hideFacades; this.opaqueFacades = !hideFacades;
} }
@@ -130,7 +130,7 @@ public enum Achievements
return this.stat; return this.stat;
} }
private Achievements( int x, int y, AEColoredItemDefinition which, AchievementType type ) Achievements( int x, int y, AEColoredItemDefinition which, AchievementType type )
{ {
this.stack = (which != null) ? which.stack( AEColor.Transparent, 1 ) : null; this.stack = (which != null) ? which.stack( AEColor.Transparent, 1 ) : null;
this.type = type; this.type = type;
@@ -138,7 +138,7 @@ public enum Achievements
this.y = y; this.y = y;
} }
private Achievements( int x, int y, AEItemDefinition which, AchievementType type ) Achievements( int x, int y, AEItemDefinition which, AchievementType type )
{ {
this.stack = (which != null) ? which.stack( 1 ) : null; this.stack = (which != null) ? which.stack( 1 ) : null;
this.type = type; this.type = type;
@@ -146,7 +146,7 @@ public enum Achievements
this.y = y; this.y = y;
} }
private Achievements( int x, int y, ItemStack which, AchievementType type ) Achievements( int x, int y, ItemStack which, AchievementType type )
{ {
this.stack = which; this.stack = which;
this.type = type; this.type = type;
+1 -1
View File
@@ -47,7 +47,7 @@ public enum Stats
return this.stat; return this.stat;
} }
private Stats() { Stats() {
} }
public void addToPlayer(EntityPlayer player, int howMany) public void addToPlayer(EntityPlayer player, int howMany)
@@ -18,9 +18,6 @@
package appeng.core.sync; package appeng.core.sync;
import static appeng.core.sync.GuiHostType.ITEM;
import static appeng.core.sync.GuiHostType.ITEM_OR_WORLD;
import static appeng.core.sync.GuiHostType.WORLD;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
@@ -118,6 +115,10 @@ import appeng.tile.storage.TileIOPort;
import appeng.tile.storage.TileSkyChest; import appeng.tile.storage.TileSkyChest;
import appeng.util.Platform; import appeng.util.Platform;
import static appeng.core.sync.GuiHostType.ITEM;
import static appeng.core.sync.GuiHostType.ITEM_OR_WORLD;
import static appeng.core.sync.GuiHostType.WORLD;
public enum GuiBridge implements IGuiHandler public enum GuiBridge implements IGuiHandler
{ {
GUI_Handler(), GUI_Handler(),
@@ -195,7 +196,7 @@ public enum GuiBridge implements IGuiHandler
private GuiHostType type; private GuiHostType type;
private SecurityPermissions requiredPermission; private SecurityPermissions requiredPermission;
private GuiBridge() { GuiBridge() {
this.Tile = null; this.Tile = null;
this.Gui = null; this.Gui = null;
this.Container = null; this.Container = null;
@@ -219,14 +220,14 @@ public enum GuiBridge implements IGuiHandler
} }
} }
private GuiBridge(Class _Container, SecurityPermissions requiredPermission) { GuiBridge( Class _Container, SecurityPermissions requiredPermission ) {
this.requiredPermission = requiredPermission; this.requiredPermission = requiredPermission;
this.Container = _Container; this.Container = _Container;
this.Tile = null; this.Tile = null;
this.getGui(); this.getGui();
} }
private GuiBridge(Class _Container, Class _Tile, GuiHostType type, SecurityPermissions requiredPermission) { GuiBridge( Class _Container, Class _Tile, GuiHostType type, SecurityPermissions requiredPermission ) {
this.requiredPermission = requiredPermission; this.requiredPermission = requiredPermission;
this.Container = _Container; this.Container = _Container;
this.type = type; this.type = type;