final variables and parameters
seeing some methods it does actually help to enforce the parameters
This commit is contained in:
@@ -91,7 +91,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.NETWORK_WRITE )
|
||||
public void onNetworkWriteEvent( ByteBuf data )
|
||||
public void onNetworkWriteEvent( final ByteBuf data )
|
||||
{
|
||||
int out = this.constructed;
|
||||
|
||||
@@ -109,9 +109,9 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.NETWORK_READ )
|
||||
public boolean onNetworkReadEvent( ByteBuf data )
|
||||
public boolean onNetworkReadEvent( final ByteBuf data )
|
||||
{
|
||||
int oldValue = this.constructed;
|
||||
final int oldValue = this.constructed;
|
||||
this.constructed = data.readByte();
|
||||
this.bridgePowered = ( this.constructed | this.powered ) == this.powered;
|
||||
return this.constructed != oldValue;
|
||||
@@ -124,7 +124,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChangeInventory( IInventory inv, int slot, InvOperation mc, ItemStack removed, ItemStack added )
|
||||
public void onChangeInventory( final IInventory inv, final int slot, final InvOperation mc, final ItemStack removed, final ItemStack added )
|
||||
{
|
||||
if( this.cluster != null )
|
||||
{
|
||||
@@ -133,7 +133,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getAccessibleSlotsBySide( ForgeDirection side )
|
||||
public int[] getAccessibleSlotsBySide( final ForgeDirection side )
|
||||
{
|
||||
if( this.isCenter() )
|
||||
{
|
||||
@@ -144,7 +144,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
|
||||
public boolean isCenter()
|
||||
{
|
||||
for( Block link : AEApi.instance().definitions().blocks().quantumLink().maybeBlock().asSet() )
|
||||
for( final Block link : AEApi.instance().definitions().blocks().quantumLink().maybeBlock().asSet() )
|
||||
{
|
||||
return this.getBlockType() == link;
|
||||
}
|
||||
@@ -153,7 +153,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@MENetworkEventSubscribe
|
||||
public void onPowerStatusChange( MENetworkPowerStatusChange c )
|
||||
public void onPowerStatusChange( final MENetworkPowerStatusChange c )
|
||||
{
|
||||
this.updateStatus = true;
|
||||
}
|
||||
@@ -192,7 +192,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disconnect( boolean affectWorld )
|
||||
public void disconnect( final boolean affectWorld )
|
||||
{
|
||||
if( this.cluster != null )
|
||||
{
|
||||
@@ -224,7 +224,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
return !this.isInvalid();
|
||||
}
|
||||
|
||||
public void updateStatus( QuantumCluster c, byte flags, boolean affectWorld )
|
||||
public void updateStatus( final QuantumCluster c, final byte flags, final boolean affectWorld )
|
||||
{
|
||||
this.cluster = c;
|
||||
|
||||
@@ -254,11 +254,11 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
|
||||
public EnumSet<ForgeDirection> getConnections()
|
||||
{
|
||||
EnumSet<ForgeDirection> set = EnumSet.noneOf( ForgeDirection.class );
|
||||
final EnumSet<ForgeDirection> set = EnumSet.noneOf( ForgeDirection.class );
|
||||
|
||||
for( ForgeDirection d : ForgeDirection.VALID_DIRECTIONS )
|
||||
for( final ForgeDirection d : ForgeDirection.VALID_DIRECTIONS )
|
||||
{
|
||||
TileEntity te = this.worldObj.getTileEntity( this.xCoord + d.offsetX, this.yCoord + d.offsetY, this.zCoord + d.offsetZ );
|
||||
final TileEntity te = this.worldObj.getTileEntity( this.xCoord + d.offsetX, this.yCoord + d.offsetY, this.zCoord + d.offsetZ );
|
||||
if( te instanceof TileQuantumBridge )
|
||||
{
|
||||
set.add( d );
|
||||
@@ -270,10 +270,10 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
|
||||
public long getQEFrequency()
|
||||
{
|
||||
ItemStack is = this.internalInventory.getStackInSlot( 0 );
|
||||
final ItemStack is = this.internalInventory.getStackInSlot( 0 );
|
||||
if( is != null )
|
||||
{
|
||||
NBTTagCompound c = is.getTagCompound();
|
||||
final NBTTagCompound c = is.getTagCompound();
|
||||
if( c != null )
|
||||
{
|
||||
return c.getLong( "freq" );
|
||||
@@ -293,7 +293,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
{
|
||||
return this.gridProxy.getEnergy().isNetworkPowered();
|
||||
}
|
||||
catch( GridAccessException e )
|
||||
catch( final GridAccessException e )
|
||||
{
|
||||
// :P
|
||||
}
|
||||
@@ -307,7 +307,7 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public AECableType getCableConnectionType( ForgeDirection dir )
|
||||
public AECableType getCableConnectionType( final ForgeDirection dir )
|
||||
{
|
||||
return AECableType.DENSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user