final variables and parameters
This commit is contained in:
@@ -69,23 +69,23 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
private int oldLV = -1; // on re-calculate light when it changes
|
||||
|
||||
@TileEvent( TileEventType.WORLD_NBT_READ )
|
||||
public void readFromNBT_TileCableBus( NBTTagCompound data )
|
||||
public void readFromNBT_TileCableBus( final NBTTagCompound data )
|
||||
{
|
||||
this.cb.readFromNBT( data );
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.WORLD_NBT_WRITE )
|
||||
public void writeToNBT_TileCableBus( NBTTagCompound data )
|
||||
public void writeToNBT_TileCableBus( final NBTTagCompound data )
|
||||
{
|
||||
this.cb.writeToNBT( data );
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.NETWORK_READ )
|
||||
public boolean readFromStream_TileCableBus( ByteBuf data ) throws IOException
|
||||
public boolean readFromStream_TileCableBus( final ByteBuf data ) throws IOException
|
||||
{
|
||||
boolean ret = this.cb.readFromStream( data );
|
||||
final boolean ret = this.cb.readFromStream( data );
|
||||
|
||||
int newLV = this.cb.getLightValue();
|
||||
final int newLV = this.cb.getLightValue();
|
||||
if( newLV != this.oldLV )
|
||||
{
|
||||
this.oldLV = newLV;
|
||||
@@ -102,27 +102,27 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
{
|
||||
try
|
||||
{
|
||||
TileCableBus tcb = (TileCableBus) BlockCableBus.tesrTile.newInstance();
|
||||
final TileCableBus tcb = (TileCableBus) BlockCableBus.tesrTile.newInstance();
|
||||
tcb.copyFrom( this );
|
||||
this.getWorld().setTileEntity( pos, tcb );
|
||||
}
|
||||
catch( Throwable ignored )
|
||||
catch( final Throwable ignored )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void copyFrom( TileCableBus oldTile )
|
||||
protected void copyFrom( final TileCableBus oldTile )
|
||||
{
|
||||
CableBusContainer tmpCB = this.cb;
|
||||
final CableBusContainer tmpCB = this.cb;
|
||||
this.cb = oldTile.cb;
|
||||
this.oldLV = oldTile.oldLV;
|
||||
oldTile.cb = tmpCB;
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.NETWORK_WRITE )
|
||||
public void writeToStream_TileCableBus( ByteBuf data ) throws IOException
|
||||
public void writeToStream_TileCableBus( final ByteBuf data ) throws IOException
|
||||
{
|
||||
this.cb.writeToStream( data );
|
||||
}
|
||||
@@ -148,13 +148,13 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
}
|
||||
|
||||
@Override
|
||||
public IGridNode getGridNode( AEPartLocation dir )
|
||||
public IGridNode getGridNode( final AEPartLocation dir )
|
||||
{
|
||||
return this.cb.getGridNode( dir );
|
||||
}
|
||||
|
||||
@Override
|
||||
public AECableType getCableConnectionType( AEPartLocation side )
|
||||
public AECableType getCableConnectionType( final AEPartLocation side )
|
||||
{
|
||||
return this.cb.getCableConnectionType( side );
|
||||
}
|
||||
@@ -174,7 +174,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
return;
|
||||
}
|
||||
|
||||
int newLV = this.cb.getLightValue();
|
||||
final int newLV = this.cb.getLightValue();
|
||||
if( newLV != this.oldLV )
|
||||
{
|
||||
this.oldLV = newLV;
|
||||
@@ -192,13 +192,13 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getDrops( World w, BlockPos pos, List drops )
|
||||
public void getDrops( final World w, final BlockPos pos, final List drops )
|
||||
{
|
||||
this.cb.getDrops( drops );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getNoDrops( World w, BlockPos pos, List<ItemStack> drops )
|
||||
public void getNoDrops( final World w, final BlockPos pos, final List<ItemStack> drops )
|
||||
{
|
||||
this.cb.getNoDrops( drops );
|
||||
}
|
||||
@@ -233,31 +233,31 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canAddPart( ItemStack is, AEPartLocation side )
|
||||
public boolean canAddPart( final ItemStack is, final AEPartLocation side )
|
||||
{
|
||||
return this.cb.canAddPart( is, side );
|
||||
}
|
||||
|
||||
@Override
|
||||
public AEPartLocation addPart( ItemStack is, AEPartLocation side, EntityPlayer player )
|
||||
public AEPartLocation addPart( final ItemStack is, final AEPartLocation side, final EntityPlayer player )
|
||||
{
|
||||
return this.cb.addPart( is, side, player );
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPart getPart( AEPartLocation side )
|
||||
public IPart getPart( final AEPartLocation side )
|
||||
{
|
||||
return this.cb.getPart( side );
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPart getPart( EnumFacing side )
|
||||
public IPart getPart( final EnumFacing side )
|
||||
{
|
||||
return this.cb.getPart( side );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removePart( AEPartLocation side, boolean suppressUpdate )
|
||||
public void removePart( final AEPartLocation side, final boolean suppressUpdate )
|
||||
{
|
||||
this.cb.removePart( side, suppressUpdate );
|
||||
}
|
||||
@@ -281,19 +281,19 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBlocked( EnumFacing side )
|
||||
public boolean isBlocked( final EnumFacing side )
|
||||
{
|
||||
return !this.ImmibisMicroblocks_isSideOpen( side );
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<AxisAlignedBB> getSelectedBoundingBoxesFromPool( World w, BlockPos pos, Entity e, boolean visual )
|
||||
public Iterable<AxisAlignedBB> getSelectedBoundingBoxesFromPool( final World w, final BlockPos pos, final Entity e, final boolean visual )
|
||||
{
|
||||
return this.cb.getSelectedBoundingBoxesFromPool( false, true, e, visual );
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelectedPart selectPart( Vec3 pos )
|
||||
public SelectedPart selectPart( final Vec3 pos )
|
||||
{
|
||||
return this.cb.selectPart( pos );
|
||||
}
|
||||
@@ -311,7 +311,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasRedstone( AEPartLocation side )
|
||||
public boolean hasRedstone( final AEPartLocation side )
|
||||
{
|
||||
return this.cb.hasRedstone( side );
|
||||
}
|
||||
@@ -333,7 +333,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
{
|
||||
if( IntegrationRegistry.INSTANCE.isEnabled( IntegrationType.ImmibisMicroblocks ) )
|
||||
{
|
||||
IImmibisMicroblocks imb = (IImmibisMicroblocks) IntegrationRegistry.INSTANCE.getInstance( IntegrationType.ImmibisMicroblocks );
|
||||
final IImmibisMicroblocks imb = (IImmibisMicroblocks) IntegrationRegistry.INSTANCE.getInstance( IntegrationType.ImmibisMicroblocks );
|
||||
if( imb != null && imb.leaveParts( this ) )
|
||||
{
|
||||
return;
|
||||
@@ -345,13 +345,13 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
|
||||
@Override
|
||||
public void addCollidingBlockToList(
|
||||
World w,
|
||||
BlockPos pos,
|
||||
AxisAlignedBB bb,
|
||||
List<AxisAlignedBB> out,
|
||||
Entity e )
|
||||
final World w,
|
||||
final BlockPos pos,
|
||||
final AxisAlignedBB bb,
|
||||
final List<AxisAlignedBB> out,
|
||||
final Entity e )
|
||||
{
|
||||
for( AxisAlignedBB bx : this.getSelectedBoundingBoxesFromPool( w, pos, e, false ) )
|
||||
for( final AxisAlignedBB bx : this.getSelectedBoundingBoxesFromPool( w, pos, e, false ) )
|
||||
{
|
||||
out.add( AxisAlignedBB.fromBounds( bx.minX, bx.minY, bx.minZ, bx.maxX, bx.maxY, bx.maxZ ) );
|
||||
}
|
||||
@@ -372,7 +372,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
return this.cb.isInWorld();
|
||||
}
|
||||
|
||||
public boolean ImmibisMicroblocks_isSideOpen( EnumFacing side )
|
||||
public boolean ImmibisMicroblocks_isSideOpen( final EnumFacing side )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -384,9 +384,9 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
|
||||
|
||||
@Override
|
||||
public boolean recolourBlock(
|
||||
EnumFacing side,
|
||||
AEColor colour,
|
||||
EntityPlayer who )
|
||||
final EnumFacing side,
|
||||
final AEColor colour,
|
||||
final EntityPlayer who )
|
||||
{
|
||||
return this.cb.recolourBlock( side, colour, who );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user