Renamed constants
This commit is contained in:
@@ -60,7 +60,7 @@ public class TileCubeGenerator extends AEBaseTile
|
||||
|
||||
void spawn()
|
||||
{
|
||||
this.worldObj.setBlock( this.xCoord, this.yCoord, this.zCoord, Platform.air, 0, 3 );
|
||||
this.worldObj.setBlock( this.xCoord, this.yCoord, this.zCoord, Platform.AIR, 0, 3 );
|
||||
|
||||
Item i = this.is.getItem();
|
||||
int side = ForgeDirection.UP.ordinal();
|
||||
|
||||
@@ -33,10 +33,10 @@ import appeng.tile.AEBaseTile;
|
||||
public class TileItemGen extends AEBaseTile implements IInventory
|
||||
{
|
||||
|
||||
public static final Queue<ItemStack> possibleItems = new LinkedList<ItemStack>();
|
||||
public static final Queue<ItemStack> POSSIBLE_ITEMS = new LinkedList<ItemStack>();
|
||||
|
||||
public TileItemGen() {
|
||||
if ( possibleItems.isEmpty() )
|
||||
if ( POSSIBLE_ITEMS.isEmpty() )
|
||||
{
|
||||
for (Object obj : Item.itemRegistry)
|
||||
{
|
||||
@@ -46,13 +46,13 @@ public class TileItemGen extends AEBaseTile implements IInventory
|
||||
if ( mi.isDamageable() )
|
||||
{
|
||||
for (int dmg = 0; dmg < mi.getMaxDamage(); dmg++)
|
||||
possibleItems.add( new ItemStack( mi, 1, dmg ) );
|
||||
POSSIBLE_ITEMS.add( new ItemStack( mi, 1, dmg ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
List<ItemStack> list = new ArrayList<ItemStack>();
|
||||
mi.getSubItems( mi, mi.getCreativeTab(), list );
|
||||
possibleItems.addAll( list );
|
||||
POSSIBLE_ITEMS.addAll( list );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,15 +73,15 @@ public class TileItemGen extends AEBaseTile implements IInventory
|
||||
|
||||
private ItemStack getRandomItem()
|
||||
{
|
||||
return possibleItems.peek();
|
||||
return POSSIBLE_ITEMS.peek();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int i, int j)
|
||||
{
|
||||
ItemStack a = possibleItems.poll();
|
||||
ItemStack a = POSSIBLE_ITEMS.poll();
|
||||
ItemStack out = a.copy();
|
||||
possibleItems.add( a );
|
||||
POSSIBLE_ITEMS.add( a );
|
||||
return out;
|
||||
}
|
||||
|
||||
@@ -94,8 +94,8 @@ public class TileItemGen extends AEBaseTile implements IInventory
|
||||
@Override
|
||||
public void setInventorySlotContents(int i, ItemStack itemstack)
|
||||
{
|
||||
ItemStack a = possibleItems.poll();
|
||||
possibleItems.add( a );
|
||||
ItemStack a = POSSIBLE_ITEMS.poll();
|
||||
POSSIBLE_ITEMS.add( a );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ToolDebugCard extends AEBaseItem
|
||||
int grids = 0;
|
||||
int totalNodes = 0;
|
||||
|
||||
for (Grid g : TickHandler.instance.getGridList())
|
||||
for (Grid g : TickHandler.INSTANCE.getGridList())
|
||||
{
|
||||
grids++;
|
||||
totalNodes += g.getNodes().size();
|
||||
|
||||
@@ -70,7 +70,7 @@ public class ToolEraser extends AEBaseItem
|
||||
if ( c_blk == blk && c_meta == meta )
|
||||
{
|
||||
blocks++;
|
||||
world.setBlock( wc.x, wc.y, wc.z, Platform.air );
|
||||
world.setBlock( wc.x, wc.y, wc.z, Platform.AIR );
|
||||
|
||||
this.check( world, wc.x + 1, wc.y, wc.z, next );
|
||||
this.check( world, wc.x - 1, wc.y, wc.z, next );
|
||||
|
||||
Reference in New Issue
Block a user