Basic reformat, hit once, hope never again

This commit is contained in:
thatsIch
2015-04-03 08:54:31 +02:00
parent 4ff1631f89
commit d34c988c88
886 changed files with 31400 additions and 30990 deletions
@@ -50,7 +50,7 @@ public class ChunkOnly extends StandardWorld
@Override
public int getBlockMetadata( int x, int y, int z )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
return this.target.getBlockMetadata( x & 0xF, y, z & 0xF );
return 0;
}
@@ -58,7 +58,7 @@ public class ChunkOnly extends StandardWorld
@Override
public Block getBlock( int x, int y, int z )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
return this.target.getBlock( x & 0xF, y, z & 0xF );
return Platform.AIR;
}
@@ -66,7 +66,7 @@ public class ChunkOnly extends StandardWorld
@Override
public void setBlock( int x, int y, int z, Block blk )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
{
this.verticalBits |= 1 << ( y >> 4 );
this.w.setBlock( x, y, z, blk, 0, 1 );
@@ -76,7 +76,7 @@ public class ChunkOnly extends StandardWorld
@Override
public void setBlock( int x, int y, int z, Block blk, int metadata, int flags )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
{
this.verticalBits |= 1 << ( y >> 4 );
this.w.setBlock( x, y, z, blk, metadata, flags & ( ~2 ) );
@@ -86,7 +86,7 @@ public class ChunkOnly extends StandardWorld
@Override
public void done()
{
if ( this.verticalBits != 0 )
if( this.verticalBits != 0 )
Platform.sendChunk( this.target, this.verticalBits );
}
@@ -27,11 +27,11 @@ public class Fallout
public void getRandomFall( IMeteoriteWorld w, int x, int y, int z )
{
double a = Math.random();
if ( a > 0.9 )
if( a > 0.9 )
this.putter.put( w, x, y, z, Blocks.stone );
else if ( a > 0.8 )
else if( a > 0.8 )
this.putter.put( w, x, y, z, Blocks.cobblestone );
else if ( a > 0.7 )
else if( a > 0.7 )
this.putter.put( w, x, y, z, Blocks.dirt );
else
this.putter.put( w, x, y, z, Blocks.gravel );
@@ -40,20 +40,20 @@ public class Fallout
public void getRandomInset( IMeteoriteWorld w, int x, int y, int z )
{
double a = Math.random();
if ( a > 0.9 )
if( a > 0.9 )
this.putter.put( w, x, y, z, Blocks.cobblestone );
else if ( a > 0.8 )
else if( a > 0.8 )
this.putter.put( w, x, y, z, Blocks.stone );
else if ( a > 0.7 )
else if( a > 0.7 )
this.putter.put( w, x, y, z, Blocks.grass );
else if ( a > 0.6 )
else if( a > 0.6 )
{
for ( Block skyStoneBlock : this.skyStoneDefinition.maybeBlock().asSet() )
for( Block skyStoneBlock : this.skyStoneDefinition.maybeBlock().asSet() )
{
this.putter.put( w, x, y, z, skyStoneBlock );
}
}
else if ( a > 0.5 )
else if( a > 0.5 )
this.putter.put( w, x, y, z, Blocks.gravel );
else
this.putter.put( w, x, y, z, Platform.AIR );
@@ -29,7 +29,7 @@ public class FalloutCopy extends Fallout
public void getRandomFall( IMeteoriteWorld w, int x, int y, int z )
{
double a = Math.random();
if ( a > SPECIFIED_BLOCK_THRESHOLD )
if( a > SPECIFIED_BLOCK_THRESHOLD )
{
this.putter.put( w, x, y, z, this.block, this.meta );
}
@@ -48,11 +48,11 @@ public class FalloutCopy extends Fallout
public void getRandomInset( IMeteoriteWorld w, int x, int y, int z )
{
double a = Math.random();
if ( a > SPECIFIED_BLOCK_THRESHOLD )
if( a > SPECIFIED_BLOCK_THRESHOLD )
{
this.putter.put( w, x, y, z, this.block, this.meta );
}
else if ( a > AIR_BLOCK_THRESHOLD )
else if( a > AIR_BLOCK_THRESHOLD )
{
this.putter.put( w, x, y, z, Platform.AIR );
}
@@ -26,7 +26,7 @@ public class FalloutSand extends FalloutCopy
@Override
public void getOther( IMeteoriteWorld w, int x, int y, int z, double a )
{
if ( a > GLASS_THRESHOLD )
if( a > GLASS_THRESHOLD )
this.putter.put( w, x, y, z, Blocks.glass );
}
}
@@ -27,11 +27,11 @@ public class FalloutSnow extends FalloutCopy
@Override
public void getOther( IMeteoriteWorld w, int x, int y, int z, double a )
{
if ( a > SNOW_THRESHOLD )
if( a > SNOW_THRESHOLD )
{
this.putter.put( w, x, y, z, Blocks.snow );
}
else if ( a > ICE_THRESHOLD )
else if( a > ICE_THRESHOLD )
{
this.putter.put( w, x, y, z, Blocks.ice );
}
@@ -11,7 +11,7 @@ public class MeteoriteBlockPutter
{
Block original = w.getBlock( i, j, k );
if ( original == Blocks.bedrock || original == blk )
if( original == Blocks.bedrock || original == blk )
return false;
w.setBlock( i, j, k, blk );
@@ -20,7 +20,7 @@ public class MeteoriteBlockPutter
public void put( IMeteoriteWorld w, int i, int j, int k, Block blk, int meta )
{
if ( w.getBlock( i, j, k ) == Blocks.bedrock )
if( w.getBlock( i, j, k ) == Blocks.bedrock )
{
return;
}
@@ -51,7 +51,7 @@ public class StandardWorld implements IMeteoriteWorld
@Override
public int getBlockMetadata( int x, int y, int z )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
return this.w.getBlockMetadata( x, y, z );
return 0;
}
@@ -59,7 +59,7 @@ public class StandardWorld implements IMeteoriteWorld
@Override
public Block getBlock( int x, int y, int z )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
return this.w.getBlock( x, y, z );
return Platform.AIR;
}
@@ -67,7 +67,7 @@ public class StandardWorld implements IMeteoriteWorld
@Override
public boolean canBlockSeeTheSky( int x, int y, int z )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
return this.w.canBlockSeeTheSky( x, y, z );
return false;
}
@@ -75,7 +75,7 @@ public class StandardWorld implements IMeteoriteWorld
@Override
public TileEntity getTileEntity( int x, int y, int z )
{
if ( this.range( x, y, z ) )
if( this.range( x, y, z ) )
return this.w.getTileEntity( x, y, z );
return null;
}
@@ -89,14 +89,14 @@ public class StandardWorld implements IMeteoriteWorld
@Override
public void setBlock( int x, int y, int z, Block blk )
{
if ( this.range( x, y, z ) )
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 ) )
if( this.range( x, y, z ) )
this.w.setBlock( x, y, z, blk, metadata, flags );
}