Unnecessary enum modifiers
This commit is contained in:
parent
ec05bd994c
commit
d8f452b665
|
@ -31,7 +31,7 @@ public enum FuzzyMode
|
|||
final public float breakPoint;
|
||||
final public float percentage;
|
||||
|
||||
private FuzzyMode(float p) {
|
||||
FuzzyMode( float p ) {
|
||||
this.percentage = p;
|
||||
this.breakPoint = p / 100.0f;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public enum PowerUnits
|
|||
RF("gui.appliedenergistics2.units.thermalexpansion"), // ThermalExpansion - Redstone Flux
|
||||
MK("gui.appliedenergistics2.units.mekanism"); // Mekanism - Joules
|
||||
|
||||
private PowerUnits(String un) {
|
||||
PowerUnits( String un ) {
|
||||
this.unlocalizedName = un;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ public enum Settings
|
|||
return this.values;
|
||||
}
|
||||
|
||||
private Settings( EnumSet set )
|
||||
Settings( EnumSet set )
|
||||
{
|
||||
if ( set == null || set.isEmpty() )
|
||||
throw new RuntimeException( "Invalid configuration." );
|
||||
|
|
|
@ -46,7 +46,7 @@ public enum Upgrades
|
|||
public final int myTier;
|
||||
public final HashMap<ItemStack, Integer> supportedMax = new HashMap<ItemStack, Integer>();
|
||||
|
||||
private Upgrades( int tier )
|
||||
Upgrades( int tier )
|
||||
{
|
||||
this.myTier = tier;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ public enum CableRenderMode
|
|||
public final boolean transparentFacades;
|
||||
public final boolean opaqueFacades;
|
||||
|
||||
private CableRenderMode(boolean hideFacades) {
|
||||
CableRenderMode( boolean hideFacades ) {
|
||||
this.transparentFacades = hideFacades;
|
||||
this.opaqueFacades = !hideFacades;
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ public enum Achievements
|
|||
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.type = type;
|
||||
|
@ -138,7 +138,7 @@ public enum Achievements
|
|||
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.type = type;
|
||||
|
@ -146,7 +146,7 @@ public enum Achievements
|
|||
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.type = type;
|
||||
|
|
|
@ -47,7 +47,7 @@ public enum Stats
|
|||
return this.stat;
|
||||
}
|
||||
|
||||
private Stats() {
|
||||
Stats() {
|
||||
}
|
||||
|
||||
public void addToPlayer(EntityPlayer player, int howMany)
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
|
||||
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;
|
||||
|
||||
|
@ -118,6 +115,10 @@ import appeng.tile.storage.TileIOPort;
|
|||
import appeng.tile.storage.TileSkyChest;
|
||||
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
|
||||
{
|
||||
GUI_Handler(),
|
||||
|
@ -195,7 +196,7 @@ public enum GuiBridge implements IGuiHandler
|
|||
private GuiHostType type;
|
||||
private SecurityPermissions requiredPermission;
|
||||
|
||||
private GuiBridge() {
|
||||
GuiBridge() {
|
||||
this.Tile = null;
|
||||
this.Gui = 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.Container = _Container;
|
||||
this.Tile = null;
|
||||
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.Container = _Container;
|
||||
this.type = type;
|
||||
|
|
Loading…
Reference in a new issue