Renamed constants

This commit is contained in:
thatsIch
2015-01-01 22:13:10 +01:00
parent e0175bac98
commit 52c512635d
118 changed files with 511 additions and 508 deletions
@@ -73,7 +73,7 @@ public class CachedPlane
public void setBlockIDWithMetadata(int y, Object[] blk)
{
if ( blk[0] == CachedPlane.this.matrixFrame )
blk[0] = Platform.air;
blk[0] = Platform.AIR;
ExtendedBlockStorage extendedBlockStorage = this.storage[y >> 4];
extendedBlockStorage.func_150818_a( this.x, y & 15, this.z, (Block) blk[0] );
@@ -205,8 +205,8 @@ public class CachedPlane
if ( blk != null && blk.isAir( c.worldObj, te.xCoord, te.yCoord, te.zCoord )
&& blk.isReplaceable( c.worldObj, te.xCoord, te.yCoord, te.zCoord ) )
{
c.worldObj.setBlock( te.xCoord, te.yCoord, te.zCoord, Platform.air );
c.worldObj.notifyBlocksOfNeighborChange( te.xCoord, te.yCoord, te.zCoord, Platform.air );
c.worldObj.setBlock( te.xCoord, te.yCoord, te.zCoord, Platform.AIR );
c.worldObj.notifyBlocksOfNeighborChange( te.xCoord, te.yCoord, te.zCoord, Platform.AIR );
}
else
this.myColumns[te.xCoord - minX][te.zCoord - minZ].setSkip( te.yCoord );
@@ -34,15 +34,15 @@ import appeng.core.AEConfig;
public class StorageChunkProvider extends ChunkProviderGenerate
{
final static Block[] blocks;
final static Block[] BLOCKS;
static {
blocks = new Block[255 * 256];
BLOCKS = new Block[255 * 256];
Block matrixFrame = AEApi.instance().blocks().blockMatrixFrame.block();
for (int x = 0; x < blocks.length; x++)
blocks[x] = matrixFrame;
for (int x = 0; x < BLOCKS.length; x++)
BLOCKS[x] = matrixFrame;
}
@@ -62,7 +62,7 @@ public class StorageChunkProvider extends ChunkProviderGenerate
@Override
public Chunk provideChunk(int x, int z)
{
Chunk chunk = new Chunk( this.w, blocks, x, z );
Chunk chunk = new Chunk( this.w, BLOCKS, x, z );
byte[] biomes = chunk.getBiomeArray();
AEConfig config = AEConfig.instance;
@@ -63,7 +63,7 @@ public class StorageHelper
public void visit(int x, int y, int z)
{
Block blk = this.dst.getBlock( x, y, z );
blk.onNeighborBlockChange( this.dst, x, y, z, Platform.air );
blk.onNeighborBlockChange( this.dst, x, y, z, Platform.AIR );
}
}
@@ -317,10 +317,10 @@ public class StorageHelper
}
for (WorldCoord wc : cDst.updates)
cDst.world.notifyBlockOfNeighborChange( wc.x, wc.y, wc.z, Platform.air );
cDst.world.notifyBlockOfNeighborChange( wc.x, wc.y, wc.z, Platform.AIR );
for (WorldCoord wc : cSrc.updates)
cSrc.world.notifyBlockOfNeighborChange( wc.x, wc.y, wc.z, Platform.air );
cSrc.world.notifyBlockOfNeighborChange( wc.x, wc.y, wc.z, Platform.AIR );
this.transverseEdges( x - 1, y - 1, z - 1, x + scaleX + 1, y + scaleY + 1, z + scaleZ + 1, new TriggerUpdates( src ) );
this.transverseEdges( i - 1, j - 1, k - 1, i + scaleX + 1, j + scaleY + 1, k + scaleZ + 1, new TriggerUpdates( dst ) );