Always use {}
This commit is contained in:
parent
ab689f2a48
commit
e5d6a40511
|
@ -68,7 +68,9 @@ public enum AEPartLocation
|
|||
public static AEPartLocation fromOrdinal( final int id )
|
||||
{
|
||||
if( id >= 0 && id < SIDE_LOCATIONS.length )
|
||||
{
|
||||
return SIDE_LOCATIONS[id];
|
||||
}
|
||||
|
||||
return INTERNAL;
|
||||
}
|
||||
|
@ -82,7 +84,9 @@ public enum AEPartLocation
|
|||
public static AEPartLocation fromFacing( final EnumFacing side )
|
||||
{
|
||||
if( side == null )
|
||||
{
|
||||
return INTERNAL;
|
||||
}
|
||||
return values()[side.ordinal()];
|
||||
}
|
||||
|
||||
|
|
|
@ -412,7 +412,9 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
|||
public EnumFacing getForward()
|
||||
{
|
||||
if( forward == null )
|
||||
{
|
||||
return EnumFacing.NORTH;
|
||||
}
|
||||
return this.forward;
|
||||
}
|
||||
|
||||
|
@ -420,7 +422,9 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
|||
public EnumFacing getUp()
|
||||
{
|
||||
if( up == null )
|
||||
{
|
||||
return EnumFacing.UP;
|
||||
}
|
||||
return this.up;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue