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
@@ -41,8 +41,8 @@ public class TileGrinder extends AEBaseInvTile implements ICrankable
int points;
final int inputs[] = new int[] { 0, 1, 2 };
final int sides[] = new int[] { 0, 1, 2, 3, 4, 5 };
final int[] inputs = new int[] { 0, 1, 2 };
final int[] sides = new int[] { 0, 1, 2, 3, 4, 5 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 7 );
@Override
@@ -51,7 +51,7 @@ import appeng.util.item.AEItemStack;
public class TileCharger extends AENetworkPowerTile implements ICrankable
{
final int sides[] = new int[] { 0 };
final int[] sides = new int[] { 0 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 );
int tickTickTimer = 0;
@@ -63,9 +63,9 @@ import appeng.util.item.AEItemStack;
public class TileInscriber extends AENetworkPowerTile implements IGridTickable, IUpgradeableHost, IConfigManagerHost
{
final int top[] = new int[] { 0 };
final int bottom[] = new int[] { 1 };
final int sides[] = new int[] { 2, 3 };
final int[] top = new int[] { 0 };
final int[] bottom = new int[] { 1 };
final int[] sides = new int[] { 2, 3 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 4 );
@@ -47,7 +47,7 @@ public class TileVibrationChamber extends AENetworkInvTile implements IGridTicka
final double powerPerTick = 5;
final int sides[] = new int[] { 0 };
final int[] sides = new int[] { 0 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 );
public int burnSpeed = 100;
@@ -172,7 +172,7 @@ public class TileController extends AENetworkPowerTile
this.worldObj.setBlockMetadataWithNotify( this.xCoord, this.yCoord, this.zCoord, meta, 2 );
}
final int sides[] = new int[] {};
final int[] sides = new int[] { };
static final AppEngInternalInventory inv = new AppEngInternalInventory( null, 0 );
@Override
@@ -36,7 +36,7 @@ import appeng.tile.inventory.InvOperation;
public class TileEnergyAcceptor extends AENetworkPowerTile
{
final int sides[] = new int[] {};
final int[] sides = new int[] { };
final static AppEngInternalInventory inv = new AppEngInternalInventory( null, 0 );
@Override
@@ -54,7 +54,7 @@ public class TileWireless extends AENetworkInvTile implements IWirelessAccessPoi
public static final int POWERED_FLAG = 1;
public static final int CHANNEL_FLAG = 2;
final int sides[] = new int[] { 0 };
final int[] sides = new int[] { 0 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 1 );
public int clientFlags = 0;
@@ -50,7 +50,7 @@ import appeng.util.Platform;
public class TileSpatialIOPort extends AENetworkInvTile implements Callable
{
final int sides[] = { 0, 1 };
final int[] sides = { 0, 1 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 2 );
YesNo lastRedstoneState = YesNo.UNDECIDED;
@@ -103,9 +103,9 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
static final ChestNoHandler noHandler = new ChestNoHandler();
static final int sides[] = new int[] { 0 };
static final int front[] = new int[] { 1 };
static final int noSlots[] = new int[] {};
static final int[] sides = new int[] { 0 };
static final int[] front = new int[] { 1 };
static final int[] noSlots = new int[] { };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 2 );
final BaseActionSource mySrc = new MachineSource( this );
@@ -60,7 +60,7 @@ import appeng.util.Platform;
public class TileDrive extends AENetworkInvTile implements IChestOrDrive, IPriorityHost
{
final int sides[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
final int[] sides = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 10 );
boolean isCached = false;
@@ -72,10 +72,10 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
final ConfigManager cm = new ConfigManager( this );
final int input[] = { 0, 1, 2, 3, 4, 5 };
final int output[] = { 6, 7, 8, 9, 10, 11 };
final int[] input = { 0, 1, 2, 3, 4, 5 };
final int[] output = { 6, 7, 8, 9, 10, 11 };
final int outputSlots[] = { 6, 7, 8, 9, 10, 11 };
final int[] outputSlots = { 6, 7, 8, 9, 10, 11 };
final AppEngInternalInventory cells = new AppEngInternalInventory( this, 12 );
final UpgradeInventory upgrades = new UpgradeInventory( AEApi.instance().blocks().blockIOPort.block(), this, 3 );
@@ -34,7 +34,7 @@ import appeng.util.Platform;
public class TileSkyChest extends AEBaseInvTile
{
final int sides[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 };
final int[] sides = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 };
final AppEngInternalInventory inv = new AppEngInternalInventory( this, 9 * 4 );
@TileEvent(TileEventType.NETWORK_WRITE)