Puts everywhere brackets
This commit is contained in:
@@ -52,7 +52,9 @@ public class ChunkOnly extends StandardWorld
|
||||
public int getBlockMetadata( int x, int y, int z )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
return this.target.getBlockMetadata( x & 0xF, y, z & 0xF );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -60,7 +62,9 @@ public class ChunkOnly extends StandardWorld
|
||||
public Block getBlock( int x, int y, int z )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
return this.target.getBlock( x & 0xF, y, z & 0xF );
|
||||
}
|
||||
return Platform.AIR;
|
||||
}
|
||||
|
||||
@@ -88,7 +92,9 @@ public class ChunkOnly extends StandardWorld
|
||||
public void done()
|
||||
{
|
||||
if( this.verticalBits != 0 )
|
||||
{
|
||||
Platform.sendChunk( this.target, this.verticalBits );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,24 +28,38 @@ public class Fallout
|
||||
{
|
||||
double a = Math.random();
|
||||
if( a > 0.9 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.stone );
|
||||
}
|
||||
else if( a > 0.8 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.cobblestone );
|
||||
}
|
||||
else if( a > 0.7 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.dirt );
|
||||
}
|
||||
else
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.gravel );
|
||||
}
|
||||
}
|
||||
|
||||
public void getRandomInset( IMeteoriteWorld w, int x, int y, int z )
|
||||
{
|
||||
double a = Math.random();
|
||||
if( a > 0.9 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.cobblestone );
|
||||
}
|
||||
else if( a > 0.8 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.stone );
|
||||
}
|
||||
else if( a > 0.7 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.grass );
|
||||
}
|
||||
else if( a > 0.6 )
|
||||
{
|
||||
for( Block skyStoneBlock : this.skyStoneDefinition.maybeBlock().asSet() )
|
||||
@@ -54,8 +68,12 @@ public class Fallout
|
||||
}
|
||||
}
|
||||
else if( a > 0.5 )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.gravel );
|
||||
}
|
||||
else
|
||||
{
|
||||
this.putter.put( w, x, y, z, Platform.AIR );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ public class FalloutSand extends FalloutCopy
|
||||
public void getOther( IMeteoriteWorld w, int x, int y, int z, double a )
|
||||
{
|
||||
if( a > GLASS_THRESHOLD )
|
||||
{
|
||||
this.putter.put( w, x, y, z, Blocks.glass );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,9 @@ public class MeteoriteBlockPutter
|
||||
Block original = w.getBlock( i, j, k );
|
||||
|
||||
if( original == Blocks.bedrock || original == blk )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
w.setBlock( i, j, k, blk );
|
||||
return true;
|
||||
|
||||
@@ -52,7 +52,9 @@ public class StandardWorld implements IMeteoriteWorld
|
||||
public int getBlockMetadata( int x, int y, int z )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
return this.w.getBlockMetadata( x, y, z );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -60,7 +62,9 @@ public class StandardWorld implements IMeteoriteWorld
|
||||
public Block getBlock( int x, int y, int z )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
return this.w.getBlock( x, y, z );
|
||||
}
|
||||
return Platform.AIR;
|
||||
}
|
||||
|
||||
@@ -68,7 +72,9 @@ public class StandardWorld implements IMeteoriteWorld
|
||||
public boolean canBlockSeeTheSky( int x, int y, int z )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
return this.w.canBlockSeeTheSky( x, y, z );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -76,7 +82,9 @@ public class StandardWorld implements IMeteoriteWorld
|
||||
public TileEntity getTileEntity( int x, int y, int z )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
return this.w.getTileEntity( x, y, z );
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -90,14 +98,18 @@ public class StandardWorld implements IMeteoriteWorld
|
||||
public void setBlock( int x, int y, int z, Block blk )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
this.w.setBlock( x, y, z, blk );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBlock( int x, int y, int z, Block blk, int metadata, int flags )
|
||||
{
|
||||
if( this.range( x, y, z ) )
|
||||
{
|
||||
this.w.setBlock( x, y, z, blk, metadata, flags );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user