Use qualified access
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user