Always use qualified access for fields and methods

This commit is contained in:
yueh
2017-07-20 21:27:22 +02:00
parent f9cad0758d
commit 15582fd1df
211 changed files with 1086 additions and 1086 deletions
@@ -61,7 +61,7 @@ public class BlockInterface extends AEBaseTileBlock
public IBlockState getActualState( IBlockState state, IBlockAccess world, BlockPos pos )
{
// Determine whether the interface is omni-directional or not
TileInterface te = getTileEntity( world, pos );
TileInterface te = this.getTileEntity( world, pos );
boolean omniDirectional = true; // The default
if( te != null )
{
@@ -76,7 +76,7 @@ public class BlockLightDetector extends AEBaseTileBlock implements IOrientableBl
public IBlockState getStateFromMeta( final int meta )
{
EnumFacing facing = EnumFacing.values()[meta];
return getDefaultState().withProperty( FACING, facing );
return this.getDefaultState().withProperty( FACING, facing );
}
@Override
@@ -92,7 +92,7 @@ public class BlockQuartzFixture extends AEBaseBlock implements IOrientableBlock,
public IBlockState getStateFromMeta( final int meta )
{
EnumFacing facing = EnumFacing.values()[meta];
return getDefaultState().withProperty( FACING, facing );
return this.getDefaultState().withProperty( FACING, facing );
}
@Override
@@ -52,13 +52,13 @@ public class BlockQuartzGrowthAccelerator extends AEBaseTileBlock implements IOr
{
super( Material.ROCK );
this.setSoundType( SoundType.METAL );
this.setDefaultState( getDefaultState().withProperty( POWERED, false ) );
this.setDefaultState( this.getDefaultState().withProperty( POWERED, false ) );
}
@Override
public IBlockState getActualState( IBlockState state, IBlockAccess world, BlockPos pos )
{
TileQuartzGrowthAccelerator te = getTileEntity( world, pos );
TileQuartzGrowthAccelerator te = this.getTileEntity( world, pos );
boolean powered = te != null && te.isPowered();
return super.getActualState( state, world, pos )
@@ -50,7 +50,7 @@ public class BlockSecurityStation extends AEBaseTileBlock
{
super( Material.IRON );
this.setDefaultState( getDefaultState().withProperty( POWERED, false ) );
this.setDefaultState( this.getDefaultState().withProperty( POWERED, false ) );
}
@Override
@@ -69,7 +69,7 @@ public class BlockSecurityStation extends AEBaseTileBlock
public IBlockState getActualState( IBlockState state, IBlockAccess world, BlockPos pos )
{
boolean powered = false;
TileSecurityStation te = getTileEntity( world, pos );
TileSecurityStation te = this.getTileEntity( world, pos );
if( te != null )
{
powered = te.isActive();
@@ -58,7 +58,7 @@ public class BlockSkyCompass extends AEBaseTileBlock implements ICustomCollision
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] { FORWARD, UP, ROTATION } );
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] { FORWARD, UP, ROTATION } );
}
@Override
@@ -55,7 +55,7 @@ public final class BlockVibrationChamber extends AEBaseTileBlock
{
super( Material.IRON );
this.setHardness( 4.2F );
this.setDefaultState( getDefaultState().withProperty( ACTIVE, false ) );
this.setDefaultState( this.getDefaultState().withProperty( ACTIVE, false ) );
}
@Override