final variables and parameters
This commit is contained in:
@@ -98,7 +98,7 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disconnect( boolean b )
|
||||
public void disconnect( final boolean b )
|
||||
{
|
||||
if( this.cluster != null )
|
||||
{
|
||||
@@ -119,7 +119,7 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
return true;
|
||||
}
|
||||
|
||||
public void updateStatus( SpatialPylonCluster c )
|
||||
public void updateStatus( final SpatialPylonCluster c )
|
||||
{
|
||||
this.cluster = c;
|
||||
this.gridProxy.setValidSides( c == null ? EnumSet.noneOf( EnumFacing.class ) : EnumSet.allOf( EnumFacing.class ) );
|
||||
@@ -128,7 +128,7 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
|
||||
public void recalculateDisplay()
|
||||
{
|
||||
int oldBits = this.displayBits;
|
||||
final int oldBits = this.displayBits;
|
||||
|
||||
this.displayBits = 0;
|
||||
|
||||
@@ -175,7 +175,7 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
this.displayBits |= DISPLAY_ENABLED;
|
||||
}
|
||||
}
|
||||
catch( GridAccessException e )
|
||||
catch( final GridAccessException e )
|
||||
{
|
||||
// nothing?
|
||||
}
|
||||
@@ -191,7 +191,7 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
public void markForUpdate()
|
||||
{
|
||||
super.markForUpdate();
|
||||
boolean hasLight = this.getLightValue() > 0;
|
||||
final boolean hasLight = this.getLightValue() > 0;
|
||||
if( hasLight != this.didHaveLight )
|
||||
{
|
||||
this.didHaveLight = hasLight;
|
||||
@@ -216,27 +216,27 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.NETWORK_READ )
|
||||
public boolean readFromStream_TileSpatialPylon( ByteBuf data )
|
||||
public boolean readFromStream_TileSpatialPylon( final ByteBuf data )
|
||||
{
|
||||
int old = this.displayBits;
|
||||
final int old = this.displayBits;
|
||||
this.displayBits = data.readByte();
|
||||
return old != this.displayBits;
|
||||
}
|
||||
|
||||
@TileEvent( TileEventType.NETWORK_WRITE )
|
||||
public void writeToStream_TileSpatialPylon( ByteBuf data )
|
||||
public void writeToStream_TileSpatialPylon( final ByteBuf data )
|
||||
{
|
||||
data.writeByte( this.displayBits );
|
||||
}
|
||||
|
||||
@MENetworkEventSubscribe
|
||||
public void powerRender( MENetworkPowerStatusChange c )
|
||||
public void powerRender( final MENetworkPowerStatusChange c )
|
||||
{
|
||||
this.recalculateDisplay();
|
||||
}
|
||||
|
||||
@MENetworkEventSubscribe
|
||||
public void activeRender( MENetworkChannelsChanged c )
|
||||
public void activeRender( final MENetworkChannelsChanged c )
|
||||
{
|
||||
this.recalculateDisplay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user