Use qualified access

This commit is contained in:
yueh 2016-01-01 01:50:28 +01:00
parent 7134e851e4
commit 98234f9935
7 changed files with 48 additions and 48 deletions

View file

@ -53,12 +53,12 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
{
super( Material.circuits );
setLightOpacity( 0 );
setFullSize( false );
setOpaque( false );
this.setLightOpacity( 0 );
this.setFullSize( false );
this.setOpaque( false );
setTileEntity( TileLightDetector.class );
setFeature( EnumSet.of( AEFeature.LightDetector ) );
this.setTileEntity( TileLightDetector.class );
this.setFeature( EnumSet.of( AEFeature.LightDetector ) );
}
@Override
@ -72,7 +72,7 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
public IBlockState getStateFromMeta(
final int meta )
{
return getDefaultState();
return this.getDefaultState();
}
@Override
@ -134,7 +134,7 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
final EnumFacing forward,
final EnumFacing up )
{
return canPlaceAt( w, pos, up.getOpposite() );
return this.canPlaceAt( w, pos, up.getOpposite() );
}
private boolean canPlaceAt(
@ -152,7 +152,7 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
final Entity thePlayer,
final boolean b )
{
final EnumFacing up = getOrientable( w, pos ).getUp();
final EnumFacing up = this.getOrientable( w, pos ).getUp();
final double xOff = -0.3 * up.getFrontOffsetX();
final double yOff = -0.3 * up.getFrontOffsetY();
final double zOff = -0.3 * up.getFrontOffsetZ();
@ -182,10 +182,10 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
final IBlockState state,
final Block neighborBlock )
{
final EnumFacing up = getOrientable( w, pos ).getUp();
if( !canPlaceAt( w, pos, up.getOpposite() ) )
final EnumFacing up = this.getOrientable( w, pos ).getUp();
if( !this.canPlaceAt( w, pos, up.getOpposite() ) )
{
dropTorch( w, pos );
this.dropTorch( w, pos );
}
}
@ -204,7 +204,7 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
{
for( final EnumFacing dir : EnumFacing.VALUES )
{
if( canPlaceAt( w, pos, dir ) )
if( this.canPlaceAt( w, pos, dir ) )
{
return true;
}

View file

@ -94,13 +94,13 @@ public class BlockCableBus extends AEBaseTileBlock // implements
public BlockCableBus()
{
super( AEGlassMaterial.INSTANCE );
setLightOpacity( 0 );
setFullSize( setOpaque( false ) );
this.setLightOpacity( 0 );
this.setFullSize( this.setOpaque( false ) );
// this will actually be overwritten later through setupTile and the
// combined layers
setTileEntity( TileCableBus.class );
setFeature( EnumSet.of( AEFeature.Core ) );
this.setTileEntity( TileCableBus.class );
this.setFeature( EnumSet.of( AEFeature.Core ) );
}
@Override
@ -110,7 +110,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final IBlockState state,
final Random rand )
{
cb( worldIn, pos ).randomDisplayTick( worldIn, pos, rand );
this.cb( worldIn, pos ).randomDisplayTick( worldIn, pos, rand );
}
@Override
@ -119,7 +119,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final BlockPos pos,
final BlockPos neighbor )
{
cb( w, pos ).onNeighborChanged();
this.cb( w, pos ).onNeighborChanged();
}
@Override
@ -138,7 +138,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final IBlockState state,
final EnumFacing side )
{
return cb( w, pos ).isProvidingWeakPower( side.getOpposite() ); // TODO:
return this.cb( w, pos ).isProvidingWeakPower( side.getOpposite() ); // TODO:
// IS
// OPPOSITE!?
}
@ -156,7 +156,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final IBlockState state,
final Entity entityIn )
{
cb( w, pos ).onEntityCollision( entityIn );
this.cb( w, pos ).onEntityCollision( entityIn );
}
@Override
@ -166,7 +166,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final IBlockState state,
final EnumFacing side )
{
return cb( w, pos ).isProvidingStrongPower( side.getOpposite() ); // TODO:
return this.cb( w, pos ).isProvidingStrongPower( side.getOpposite() ); // TODO:
// IS
// OPPOSITE!?
}
@ -185,7 +185,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
{
return 0;
}
return cb( world, pos ).getLightValue();
return this.cb( world, pos ).getLightValue();
}
@Override
@ -194,7 +194,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final BlockPos pos,
final EntityLivingBase entity )
{
return cb( world, pos ).isLadder( entity );
return this.cb( world, pos ).isLadder( entity );
}
@Override
@ -203,7 +203,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final BlockPos pos,
final EnumFacing side )
{
return cb( w, pos ).isSolidOnSide( side );
return this.cb( w, pos ).isSolidOnSide( side );
}
@Override
@ -211,7 +211,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final World w,
final BlockPos pos )
{
return cb( w, pos ).isEmpty();
return this.cb( w, pos ).isEmpty();
}
@Override
@ -244,7 +244,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
side = EnumFacing.UP;
}
return cb( w, pos ).canConnectRedstone( EnumSet.of( side ) );
return this.cb( w, pos ).canConnectRedstone( EnumSet.of( side ) );
}
@Override
@ -266,7 +266,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final BlockPos pos )
{
final Vec3 v3 = target.hitVec.subtract( pos.getX(), pos.getY(), pos.getZ() );
final SelectedPart sp = cb( world, pos ).selectPart( v3 );
final SelectedPart sp = this.cb( world, pos ).selectPart( v3 );
if( sp.part != null )
{
@ -287,7 +287,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final MovingObjectPosition target,
final EffectRenderer effectRenderer )
{
final Object object = cb( world, target.getBlockPos() );
final Object object = this.cb( world, target.getBlockPos() );
if( object instanceof IPartHost )
{
final IPartHost host = (IPartHost) object;
@ -321,7 +321,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final BlockPos pos,
final EffectRenderer effectRenderer )
{
final Object object = cb( world, pos );
final Object object = this.cb( world, pos );
if( object instanceof IPartHost )
{
final IPartHost host = (IPartHost) object;
@ -353,7 +353,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
{
if( Platform.isServer() )
{
cb( w, pos ).onNeighborChanged();
this.cb( w, pos ).onNeighborChanged();
}
}
@ -392,7 +392,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
final float hitY,
final float hitZ )
{
return cb( w, pos ).activate( player, new Vec3( hitX, hitY, hitZ ) );
return this.cb( w, pos ).activate( player, new Vec3( hitX, hitY, hitZ ) );
}
@Override
@ -414,7 +414,7 @@ public class BlockCableBus extends AEBaseTileBlock // implements
{
try
{
return cb( world, pos ).recolourBlock( side, AEColor.values()[color.ordinal()], who );
return this.cb( world, pos ).recolourBlock( side, AEColor.values()[color.ordinal()], who );
}
catch( final Throwable ignored )
{
@ -456,14 +456,14 @@ public class BlockCableBus extends AEBaseTileBlock // implements
protected void setFeature(
final EnumSet<AEFeature> f )
{
final AECableBusFeatureHandler featureHandler = new AECableBusFeatureHandler( f, this, getFeatureSubName() );
setHandler( featureHandler );
final AECableBusFeatureHandler featureHandler = new AECableBusFeatureHandler( f, this, this.getFeatureSubName() );
this.setHandler( featureHandler );
}
public void setupTile()
{
noTesrTile = Api.INSTANCE.partHelper().getCombinedInstance( TileCableBus.class.getName() );
setTileEntity( noTesrTile );
this.setTileEntity( noTesrTile );
GameRegistry.registerTileEntity( noTesrTile, "BlockCableBus" );
if( Platform.isClient() )
{

View file

@ -34,7 +34,7 @@ public class SmartModel implements IBakedModel, ISmartBlockModel, ISmartItemMode
public SmartModel(
final BlockRenderInfo rendererInstance )
{
aeRenderer = rendererInstance;
this.aeRenderer = rendererInstance;
}
@Override
@ -71,7 +71,7 @@ public class SmartModel implements IBakedModel, ISmartBlockModel, ISmartItemMode
@Override
public TextureAtlasSprite getParticleTexture()
{
return aeRenderer != null ? aeRenderer.getTexture( AEPartLocation.UP ).getAtlas() : MissingIcon.getMissing();
return this.aeRenderer != null ? this.aeRenderer.getTexture( AEPartLocation.UP ).getAtlas() : MissingIcon.getMissing();
}
@Override
@ -87,7 +87,7 @@ public class SmartModel implements IBakedModel, ISmartBlockModel, ISmartItemMode
final ModelGenerator helper = new ModelGenerator();
final Block blk = Block.getBlockFromItem( stack.getItem() );
helper.setRenderBoundsFromBlock( blk );
aeRenderer.getRendererInstance().renderInventory( blk instanceof AEBaseBlock ? (AEBaseBlock) blk : null, stack, helper, ItemRenderType.INVENTORY, null );
this.aeRenderer.getRendererInstance().renderInventory( blk instanceof AEBaseBlock ? (AEBaseBlock) blk : null, stack, helper, ItemRenderType.INVENTORY, null );
helper.finalizeModel( true );
return helper.getOutput();
}
@ -103,7 +103,7 @@ public class SmartModel implements IBakedModel, ISmartBlockModel, ISmartItemMode
helper.setTranslation( -pos.getX(), -pos.getY(), -pos.getZ() );
helper.setRenderBoundsFromBlock( blk );
helper.setBlockAccess( world );
aeRenderer.getRendererInstance().renderInWorld( blk instanceof AEBaseBlock ? (AEBaseBlock) blk : null, world, pos, helper );
this.aeRenderer.getRendererInstance().renderInWorld( blk instanceof AEBaseBlock ? (AEBaseBlock) blk : null, world, pos, helper );
helper.finalizeModel( false );
return helper.getOutput();
}

View file

@ -28,13 +28,13 @@ public class BusRenderer
public ModelGenerator getRenderer()
{
return mg;
return this.mg;
}
public void setRenderer(
ModelGenerator renderer )
{
mg = renderer;
this.mg = renderer;
}
}

View file

@ -214,10 +214,10 @@ public class LightningFX extends EntityFX
{
if( this.hasData )
{
tess.color( red, green, blue, particleAlpha ).pos( a[0], a[1], a[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, particleAlpha ).pos( this.vertices[0], this.vertices[1], this.vertices[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, particleAlpha ).pos( this.verticesWithUV[0], this.verticesWithUV[1], this.verticesWithUV[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, particleAlpha ).pos( b[0], b[1], b[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, this.particleAlpha ).pos( a[0], a[1], a[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, this.particleAlpha ).pos( this.vertices[0], this.vertices[1], this.vertices[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, this.particleAlpha ).pos( this.verticesWithUV[0], this.verticesWithUV[1], this.verticesWithUV[2] ).tex( f6, f8 ).endVertex();
tess.color( red, green, blue, this.particleAlpha ).pos( b[0], b[1], b[2] ).tex( f6, f8 ).endVertex();
}
this.hasData = true;
for( int x = 0; x < 3; x++ )

View file

@ -411,7 +411,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
@Override
public EnumFacing getForward()
{
if( forward == null )
if( this.forward == null )
{
return EnumFacing.NORTH;
}
@ -421,7 +421,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
@Override
public EnumFacing getUp()
{
if( up == null )
if( this.up == null )
{
return EnumFacing.UP;
}

View file

@ -51,7 +51,7 @@ public abstract class AENetworkInvTile extends AEBaseInvTile implements IActionH
@Override
public AENetworkProxy getProxy()
{
return gridProxy;
return this.gridProxy;
}
@Override