Renamed constants
This commit is contained in:
@@ -28,7 +28,7 @@ public class InvLayerData
|
||||
{
|
||||
|
||||
// a simple empty array for empty stuff..
|
||||
private final static int[] nullSides = new int[] {};
|
||||
private final static int[] NULL_SIDES = new int[] {};
|
||||
|
||||
// cache of inventory state.
|
||||
final private int[][] sides;
|
||||
@@ -118,7 +118,7 @@ public class InvLayerData
|
||||
public int[] getAccessibleSlotsFromSide(int side)
|
||||
{
|
||||
if ( this.sides == null || side < 0 || side > 5 )
|
||||
return nullSides;
|
||||
return NULL_SIDES;
|
||||
return this.sides[side];
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import appeng.api.parts.LayerBase;
|
||||
public class LayerIFluidHandler extends LayerBase implements IFluidHandler
|
||||
{
|
||||
|
||||
static final FluidTankInfo[] emptyList = new FluidTankInfo[0];
|
||||
static final FluidTankInfo[] EMPTY_LIST = new FluidTankInfo[0];
|
||||
|
||||
@Override
|
||||
public int fill(ForgeDirection from, FluidStack resource, boolean doFill)
|
||||
@@ -82,7 +82,7 @@ public class LayerIFluidHandler extends LayerBase implements IFluidHandler
|
||||
IPart part = this.getPart( from );
|
||||
if ( part instanceof IFluidHandler )
|
||||
return ((IFluidHandler) part).getTankInfo( from );
|
||||
return emptyList;
|
||||
return EMPTY_LIST;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
|
||||
{
|
||||
|
||||
// a simple empty array for empty stuff..
|
||||
private final static int[] nullSides = new int[] {};
|
||||
private final static int[] NULL_SIDES = new int[] {};
|
||||
|
||||
InvLayerData invLayer = null;
|
||||
|
||||
@@ -81,7 +81,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
|
||||
}
|
||||
else
|
||||
{
|
||||
sideData = new int[][] { nullSides, nullSides, nullSides, nullSides, nullSides, nullSides };
|
||||
sideData = new int[][] { NULL_SIDES, NULL_SIDES, NULL_SIDES, NULL_SIDES, NULL_SIDES, NULL_SIDES };
|
||||
slots = new ArrayList<InvSot>( Collections.nCopies( slotCount, (InvSot) null ) );
|
||||
|
||||
int offsetForLayer = 0;
|
||||
@@ -195,7 +195,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
|
||||
if ( this.invLayer != null )
|
||||
return this.invLayer.getAccessibleSlotsFromSide( side );
|
||||
|
||||
return nullSides;
|
||||
return NULL_SIDES;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user