Replaced C-style array instantiation with Java-Style

This commit is contained in:
thatsIch
2015-01-01 21:15:03 +01:00
parent e38293a291
commit 8179259afa
48 changed files with 69 additions and 69 deletions
@@ -107,7 +107,7 @@ public class CableBusContainer extends CableBusStorage implements AEMultiTile, I
public void rotateLeft()
{
IPart newSides[] = new IPart[6];
IPart[] newSides = new IPart[6];
newSides[ForgeDirection.UP.ordinal()] = this.getSide( ForgeDirection.UP );
newSides[ForgeDirection.DOWN.ordinal()] = this.getSide( ForgeDirection.DOWN );
@@ -31,8 +31,8 @@ public class CableBusStorage
{
private IPartCable center;
private IPart sides[];
private IFacadePart facades[];
private IPart[] sides;
private IFacadePart[] facades;
protected IPartCable getCenter()
{
@@ -31,11 +31,11 @@ public class InvLayerData
private final static int[] nullSides = new int[] {};
// cache of inventory state.
final private int sides[][];
final private int[][] sides;
final private List<ISidedInventory> inventories;
final private List<InvSot> slots;
public InvLayerData(int a[][], List<ISidedInventory> b, List<InvSot> c) {
public InvLayerData( int[][] a, List<ISidedInventory> b, List<InvSot> c) {
this.sides = a;
this.inventories = b;
this.slots = c;
@@ -57,7 +57,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
public void notifyNeighbors()
{
// cache of inventory state.
int sideData[][] = null;
int[][] sideData = null;
List<ISidedInventory> inventories = null;
List<InvSot> slots = null;
@@ -99,7 +99,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
break;
}
int cSidesList[] = sideData[currentSide.ordinal()] = new int[slotCount];
int[] cSidesList = sideData[currentSide.ordinal()] = new int[slotCount];
for (int cSlot = 0; cSlot < slotCount; cSlot++)
{
cSidesList[cSlot] = offsetForLayer;