Non static access of static members
This commit is contained in:
@@ -72,7 +72,7 @@ public abstract class PartBasicState extends AEBasePart implements IPowerChannel
|
||||
public void renderLights( int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer )
|
||||
{
|
||||
rh.normalRendering();
|
||||
this.setColors( ( this.clientFlags & ( this.POWERED_FLAG | this.CHANNEL_FLAG ) ) == ( this.POWERED_FLAG | this.CHANNEL_FLAG ), ( this.clientFlags & this.POWERED_FLAG ) == this.POWERED_FLAG );
|
||||
this.setColors( ( this.clientFlags & ( POWERED_FLAG | CHANNEL_FLAG ) ) == ( POWERED_FLAG | CHANNEL_FLAG ), ( this.clientFlags & POWERED_FLAG ) == POWERED_FLAG );
|
||||
rh.renderFace( x, y, z, CableBusTextures.PartMonitorSidesStatusLights.getIcon(), ForgeDirection.EAST, renderer );
|
||||
rh.renderFace( x, y, z, CableBusTextures.PartMonitorSidesStatusLights.getIcon(), ForgeDirection.WEST, renderer );
|
||||
rh.renderFace( x, y, z, CableBusTextures.PartMonitorSidesStatusLights.getIcon(), ForgeDirection.UP, renderer );
|
||||
@@ -111,12 +111,12 @@ public abstract class PartBasicState extends AEBasePart implements IPowerChannel
|
||||
{
|
||||
if( this.proxy.getEnergy().isNetworkPowered() )
|
||||
{
|
||||
this.clientFlags |= this.POWERED_FLAG;
|
||||
this.clientFlags |= POWERED_FLAG;
|
||||
}
|
||||
|
||||
if( this.proxy.getNode().meetsChannelRequirements() )
|
||||
{
|
||||
this.clientFlags |= this.CHANNEL_FLAG;
|
||||
this.clientFlags |= CHANNEL_FLAG;
|
||||
}
|
||||
|
||||
this.clientFlags = this.populateFlags( this.clientFlags );
|
||||
@@ -155,12 +155,12 @@ public abstract class PartBasicState extends AEBasePart implements IPowerChannel
|
||||
@Override
|
||||
public boolean isPowered()
|
||||
{
|
||||
return ( this.clientFlags & this.POWERED_FLAG ) == this.POWERED_FLAG;
|
||||
return ( this.clientFlags & POWERED_FLAG ) == POWERED_FLAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive()
|
||||
{
|
||||
return ( this.clientFlags & this.CHANNEL_FLAG ) == this.CHANNEL_FLAG;
|
||||
return ( this.clientFlags & CHANNEL_FLAG ) == CHANNEL_FLAG;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,7 @@ import appeng.core.sync.GuiBridge;
|
||||
import appeng.helpers.IPriorityHost;
|
||||
import appeng.me.GridAccessException;
|
||||
import appeng.me.storage.MEInventoryHandler;
|
||||
import appeng.parts.PartBasicState;
|
||||
import appeng.tile.inventory.AppEngInternalAEInventory;
|
||||
import appeng.tile.inventory.InvOperation;
|
||||
import appeng.util.Platform;
|
||||
@@ -312,7 +313,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
||||
maxY = 16;
|
||||
}
|
||||
|
||||
boolean isActive = ( this.clientFlags & ( this.POWERED_FLAG | this.CHANNEL_FLAG ) ) == ( this.POWERED_FLAG | this.CHANNEL_FLAG );
|
||||
boolean isActive = ( this.clientFlags & ( PartBasicState.POWERED_FLAG | PartBasicState.CHANNEL_FLAG ) ) == ( PartBasicState.POWERED_FLAG | PartBasicState.CHANNEL_FLAG );
|
||||
|
||||
this.renderCache = rh.useSimplifiedRendering( x, y, z, this, this.renderCache );
|
||||
rh.setTexture( CableBusTextures.PartPlaneSides.getIcon(), CableBusTextures.PartPlaneSides.getIcon(), CableBusTextures.PartTransitionPlaneBack.getIcon(), isActive ? CableBusTextures.BlockFormPlaneOn.getIcon() : this.is.getIconIndex(), CableBusTextures.PartPlaneSides.getIcon(), CableBusTextures.PartPlaneSides.getIcon() );
|
||||
|
||||
@@ -152,7 +152,7 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
{
|
||||
if( Platform.isClient() )
|
||||
{
|
||||
return ( this.clientFlags & this.FLAG_ON ) == this.FLAG_ON;
|
||||
return ( this.clientFlags & FLAG_ON ) == FLAG_ON;
|
||||
}
|
||||
|
||||
if( !this.proxy.isActive() )
|
||||
@@ -187,7 +187,7 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
@Override
|
||||
protected int populateFlags( int cf )
|
||||
{
|
||||
return cf | ( this.prevState ? this.FLAG_ON : 0 );
|
||||
return cf | ( this.prevState ? FLAG_ON : 0 );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -72,14 +72,14 @@ public class PartToggleBus extends PartBasicState
|
||||
@Override
|
||||
public void setColors( boolean hasChan, boolean hasPower )
|
||||
{
|
||||
this.hasRedstone = ( this.clientFlags & this.REDSTONE_FLAG ) == this.REDSTONE_FLAG;
|
||||
this.hasRedstone = ( this.clientFlags & REDSTONE_FLAG ) == REDSTONE_FLAG;
|
||||
super.setColors( hasChan && this.hasRedstone, hasPower && this.hasRedstone );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int populateFlags( int cf )
|
||||
{
|
||||
return cf | ( this.getIntention() ? this.REDSTONE_FLAG : 0 );
|
||||
return cf | ( this.getIntention() ? REDSTONE_FLAG : 0 );
|
||||
}
|
||||
|
||||
protected boolean getIntention()
|
||||
|
||||
@@ -137,27 +137,27 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
{
|
||||
if( this.cluster.min.equals( this.getLocation() ) )
|
||||
{
|
||||
this.displayBits = this.DISPLAY_END_MIN;
|
||||
this.displayBits = DISPLAY_END_MIN;
|
||||
}
|
||||
else if( this.cluster.max.equals( this.getLocation() ) )
|
||||
{
|
||||
this.displayBits = this.DISPLAY_END_MAX;
|
||||
this.displayBits = DISPLAY_END_MAX;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.displayBits = this.DISPLAY_MIDDLE;
|
||||
this.displayBits = DISPLAY_MIDDLE;
|
||||
}
|
||||
|
||||
switch( this.cluster.currentAxis )
|
||||
{
|
||||
case X:
|
||||
this.displayBits |= this.DISPLAY_X;
|
||||
this.displayBits |= DISPLAY_X;
|
||||
break;
|
||||
case Y:
|
||||
this.displayBits |= this.DISPLAY_Y;
|
||||
this.displayBits |= DISPLAY_Y;
|
||||
break;
|
||||
case Z:
|
||||
this.displayBits |= this.DISPLAY_Z;
|
||||
this.displayBits |= DISPLAY_Z;
|
||||
break;
|
||||
default:
|
||||
this.displayBits = 0;
|
||||
@@ -168,12 +168,12 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
{
|
||||
if( this.gridProxy.getEnergy().isNetworkPowered() )
|
||||
{
|
||||
this.displayBits |= this.DISPLAY_POWERED_ENABLED;
|
||||
this.displayBits |= DISPLAY_POWERED_ENABLED;
|
||||
}
|
||||
|
||||
if( this.cluster.isValid && this.gridProxy.isActive() )
|
||||
{
|
||||
this.displayBits |= this.DISPLAY_ENABLED;
|
||||
this.displayBits |= DISPLAY_ENABLED;
|
||||
}
|
||||
}
|
||||
catch( GridAccessException e )
|
||||
@@ -209,7 +209,7 @@ public class TileSpatialPylon extends AENetworkTile implements IAEMultiBlock
|
||||
|
||||
public int getLightValue()
|
||||
{
|
||||
if( ( this.displayBits & this.DISPLAY_POWERED_ENABLED ) == this.DISPLAY_POWERED_ENABLED )
|
||||
if( ( this.displayBits & DISPLAY_POWERED_ENABLED ) == DISPLAY_POWERED_ENABLED )
|
||||
{
|
||||
return 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user