Puts everywhere brackets

This commit is contained in:
thatsIch
2015-04-29 02:30:53 +02:00
parent 23aa8fd72d
commit 64ed05a1b4
465 changed files with 6726 additions and 14 deletions
@@ -46,7 +46,9 @@ public class BlockCubeGenerator extends AEBaseBlock
TileCubeGenerator tcg = this.getTileEntity( w, x, y, z );
if( tcg != null )
{
tcg.click( player );
}
return true;
}
@@ -58,7 +58,9 @@ public class TileChunkLoader extends AEBaseTile
void initTicket()
{
if( Platform.isClient() )
{
return;
}
this.ct = ForgeChunkManager.requestTicket( AppEng.instance, this.worldObj, Type.NORMAL );
@@ -84,7 +86,9 @@ public class TileChunkLoader extends AEBaseTile
public void invalidate()
{
if( Platform.isClient() )
{
return;
}
AELog.info( "Released Ticket " + this.ct.toString() );
ForgeChunkManager.releaseTicket( this.ct );
@@ -56,7 +56,9 @@ public class TileCubeGenerator extends AEBaseTile
}
if( this.countdown <= 0 )
{
this.spawn();
}
}
}
@@ -93,14 +95,22 @@ public class TileCubeGenerator extends AEBaseTile
this.is = null;
if( player.isSneaking() )
{
this.size--;
}
else
{
this.size++;
}
if( this.size < 3 )
{
this.size = 3;
}
if( this.size > 64 )
{
this.size = 64;
}
player.addChatMessage( new ChatComponentText( "Size: " + this.size ) );
}
@@ -49,7 +49,9 @@ public class TileItemGen extends AEBaseTile implements IInventory
if( mi.isDamageable() )
{
for( int dmg = 0; dmg < mi.getMaxDamage(); dmg++ )
{
POSSIBLE_ITEMS.add( new ItemStack( mi, 1, dmg ) );
}
}
else
{
@@ -38,7 +38,9 @@ public class TilePhantomNode extends AENetworkTile
public IGridNode getGridNode( ForgeDirection dir )
{
if( !this.crashMode )
{
return super.getGridNode( dir );
}
return this.proxy.getNode();
}
@@ -63,7 +63,9 @@ public class ToolDebugCard extends AEBaseItem
public boolean onItemUseFirst( ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ )
{
if( Platform.isClient() )
{
return false;
}
if( player.isSneaking() )
{
@@ -112,16 +114,22 @@ public class ToolDebugCard extends AEBaseItem
for( IGridNode n : current )
{
if( n.getMachine() instanceof TileController )
{
break outer;
}
for( IGridConnection c : n.getConnections() )
{
next.add( c.getOtherSide( n ) );
}
}
length++;
if( length > maxLength )
{
break;
}
}
this.outputMsg( player, "Cable Distance: " + length );
@@ -154,10 +162,14 @@ public class ToolDebugCard extends AEBaseItem
}
}
else
{
this.outputMsg( player, "No Node Available." );
}
}
else
{
this.outputMsg( player, "Not Networked Block" );
}
if( te instanceof IPartHost )
{
@@ -171,7 +183,9 @@ public class ToolDebugCard extends AEBaseItem
{
ForgeDirection fd = gc.getDirection( n );
if( fd != ForgeDirection.UNKNOWN )
{
this.outputMsg( player, fd.toString() + ": " + gc.getUsedChannels() );
}
}
}
}
@@ -204,7 +218,9 @@ public class ToolDebugCard extends AEBaseItem
{
long ms = nanos / 100000;
if( nanos <= 100000 )
{
return nanos + "ns";
}
return ( ms / 10.0f ) + "ms";
}
}
@@ -58,7 +58,9 @@ public class ToolEraser extends AEBaseItem
public boolean onItemUseFirst( ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ )
{
if( Platform.isClient() )
{
return false;
}
Block blk = world.getBlock( x, y, z );
int meta = world.getBlockMetadata( x, y, z );
@@ -52,13 +52,17 @@ public class ToolMeteoritePlacer extends AEBaseItem
public boolean onItemUseFirst( ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ )
{
if( Platform.isClient() )
{
return false;
}
MeteoritePlacer mp = new MeteoritePlacer();
boolean worked = mp.spawnMeteorite( new StandardWorld( world ), x, y, z );
if( !worked )
{
player.addChatMessage( new ChatComponentText( "Un-suitable Location." ) );
}
return true;
}
@@ -53,7 +53,9 @@ public class ToolReplicatorCard extends AEBaseItem
public boolean onItemUseFirst( ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ )
{
if( Platform.isClient() )
{
return false;
}
if( player.isSneaking() )
{
@@ -68,7 +70,9 @@ public class ToolReplicatorCard extends AEBaseItem
stack.setTagCompound( tag );
}
else
{
this.outputMsg( player, "This is not a Grid Tile." );
}
}
else
{
@@ -117,7 +121,9 @@ public class ToolReplicatorCard extends AEBaseItem
int scale_z = max.z - min.z;
for( int i = 1; i < scale_x; i++ )
{
for( int j = 1; j < scale_y; j++ )
{
for( int k = 1; k < scale_z; k++ )
{
Block blk = src_w.getBlock( min_x + i, min_y + j, min_z + k );
@@ -135,21 +141,33 @@ public class ToolReplicatorCard extends AEBaseItem
}
world.markBlockForUpdate( i + rel_x, j + rel_y, k + rel_z );
}
}
}
}
else
{
this.outputMsg( player, "requires valid spatial pylon setup." );
}
}
else
{
this.outputMsg( player, "no grid?" );
}
}
else
{
this.outputMsg( player, "No grid node?" );
}
}
else
{
this.outputMsg( player, "Src is no longer a grid block?" );
}
}
else
{
this.outputMsg( player, "No Source Defined" );
}
}
return true;
}