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
+3 -3
View File
@@ -111,7 +111,7 @@ public abstract class AEBaseBlock extends Block
@Override
public AxisAlignedBB getBoundingBox( IBlockState state, IBlockAccess source, BlockPos pos )
{
return boundingBox;
return this.boundingBox;
}
@SuppressWarnings( "deprecation" )
@@ -421,8 +421,8 @@ public abstract class AEBaseBlock extends Block
@Override
public String toString()
{
String regName = getRegistryName() != null ? getRegistryName().getResourcePath() : "unregistered";
return getClass().getSimpleName() + "[" + regName + "]";
String regName = this.getRegistryName() != null ? this.getRegistryName().getResourcePath() : "unregistered";
return this.getClass().getSimpleName() + "[" + regName + "]";
}
protected String getUnlocalizedName( final ItemStack is )
@@ -43,8 +43,8 @@ public abstract class AEBaseStairBlock extends BlockStairs
@Override
public String toString()
{
String regName = getRegistryName() != null ? getRegistryName().getResourcePath() : "unregistered";
return getClass().getSimpleName() + "[" + regName + "]";
String regName = this.getRegistryName() != null ? this.getRegistryName().getResourcePath() : "unregistered";
return this.getClass().getSimpleName() + "[" + regName + "]";
}
}
@@ -86,7 +86,7 @@ public abstract class AEBaseTileBlock extends AEBaseBlock implements ITileEntity
return state;
}
AEBaseTile tile = getTileEntity( world, pos );
AEBaseTile tile = this.getTileEntity( world, pos );
if( tile == null )
{
return state; // No info available
@@ -99,7 +99,7 @@ public abstract class AEBaseTileBlock extends AEBaseBlock implements ITileEntity
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] {
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] {
FORWARD,
UP
} );
@@ -121,7 +121,7 @@ public abstract class AEBaseTileBlock extends AEBaseBlock implements ITileEntity
@Override
public boolean hasTileEntity( IBlockState state )
{
return hasBlockTileEntity();
return this.hasBlockTileEntity();
}
private boolean hasBlockTileEntity()
@@ -36,7 +36,7 @@ public class UnlistedDirection implements IUnlistedProperty<EnumFacing>
@Override
public String getName()
{
return name;
return this.name;
}
@Override
@@ -51,7 +51,7 @@ public class BlockCraftingMonitor extends BlockCraftingUnit
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] {
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] {
STATE,
COLOR,
FORWARD,
@@ -66,7 +66,7 @@ public class BlockCraftingMonitor extends BlockCraftingUnit
EnumFacing forward = EnumFacing.NORTH;
EnumFacing up = EnumFacing.UP;
TileCraftingMonitorTile te = getTileEntity( world, pos );
TileCraftingMonitorTile te = this.getTileEntity( world, pos );
if( te != null )
{
color = te.getColor();
@@ -76,7 +76,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
for( EnumFacing facing : EnumFacing.values() )
{
if( isConnected( world, pos, facing ) )
if( this.isConnected( world, pos, facing ) )
{
connections.add( facing );
}
@@ -96,7 +96,7 @@ public class BlockCraftingUnit extends AEBaseTileBlock
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] { STATE } );
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] { STATE } );
}
@Override
@@ -63,7 +63,7 @@ public class BlockMolecularAssembler extends AEBaseTileBlock
public IBlockState getActualState( IBlockState state, IBlockAccess worldIn, BlockPos pos )
{
boolean powered = false;
TileMolecularAssembler te = getTileEntity( worldIn, pos );
TileMolecularAssembler te = this.getTileEntity( worldIn, pos );
if( te != null )
{
powered = te.isPowered();
@@ -78,7 +78,7 @@ public class BlockCrank extends AEBaseTileBlock
private void dropCrank( final World world, final BlockPos pos )
{
world.destroyBlock( pos, true ); // w.destroyBlock( x, y, z, true );
world.notifyBlockUpdate( pos, getDefaultState(), world.getBlockState( pos ), 3 );
world.notifyBlockUpdate( pos, this.getDefaultState(), world.getBlockState( pos ), 3 );
}
@Override
@@ -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
@@ -118,7 +118,7 @@ public class BlockCableBus extends AEBaseTileBlock
@Override
public IBlockState getExtendedState( IBlockState state, IBlockAccess world, BlockPos pos )
{
CableBusRenderState renderState = cb( world, pos ).getRenderState();
CableBusRenderState renderState = this.cb( world, pos ).getRenderState();
return ( (IExtendedBlockState) state ).withProperty( RENDER_STATE_PROPERTY, renderState );
}
@@ -255,7 +255,7 @@ public class BlockCableBus extends AEBaseTileBlock
ICableBusContainer cb = this.cb( world, target.getBlockPos() );
// Our built-in model has the actual baked sprites we need
IBakedModel model = Minecraft.getMinecraft().getBlockRendererDispatcher().getModelForState( getDefaultState() );
IBakedModel model = Minecraft.getMinecraft().getBlockRendererDispatcher().getModelForState( this.getDefaultState() );
// We cannot add the effect if we don't have the model
if( !( model instanceof CableBusBakedModel ) )
@@ -290,7 +290,7 @@ public class BlockCableBus extends AEBaseTileBlock
ICableBusContainer cb = this.cb( world, pos );
// Our built-in model has the actual baked sprites we need
IBakedModel model = Minecraft.getMinecraft().getBlockRendererDispatcher().getModelForState( getDefaultState() );
IBakedModel model = Minecraft.getMinecraft().getBlockRendererDispatcher().getModelForState( this.getDefaultState() );
// We cannot add the effect if we dont have the model
if( !( model instanceof CableBusBakedModel ) )
@@ -320,7 +320,7 @@ public class BlockCableBus extends AEBaseTileBlock
double d1 = (double) pos.getY() + ( (double) k + 0.5D ) / 4.0D;
double d2 = (double) pos.getZ() + ( (double) l + 0.5D ) / 4.0D;
ParticleDigging particle = new DestroyFX( world, d0, d1, d2, d0 - (double) pos.getX() - 0.5D, d1 - (double) pos
.getY() - 0.5D, d2 - (double) pos.getZ() - 0.5D, getDefaultState() ).setBlockPos( pos );
.getY() - 0.5D, d2 - (double) pos.getZ() - 0.5D, this.getDefaultState() ).setBlockPos( pos );
particle.setParticleTexture( texture );
effectRenderer.addEffect( particle );
}
@@ -75,7 +75,7 @@ public class BlockController extends AEBaseTileBlock
{
super( Material.IRON );
this.setHardness( 6 );
this.setDefaultState( getDefaultState()
this.setDefaultState( this.getDefaultState()
.withProperty( CONTROLLER_STATE, ControllerBlockState.offline )
.withProperty( CONTROLLER_TYPE, ControllerRenderType.block ) );
}
@@ -89,7 +89,7 @@ public class BlockController extends AEBaseTileBlock
@Override
protected BlockStateContainer createBlockState()
{
return new BlockStateContainer( this, getAEStates() );
return new BlockStateContainer( this, this.getAEStates() );
}
/**
@@ -57,7 +57,7 @@ public class BlockEnergyCellRendering extends BlockRenderingCustomizer
double fillFactor = getFillFactor( is );
int storageLevel = TileEnergyCell.getStorageLevelFromFillFactor( fillFactor );
return new ModelResourceLocation( baseModel, "fullness=" + storageLevel );
return new ModelResourceLocation( this.baseModel, "fullness=" + storageLevel );
}
/**
@@ -57,7 +57,7 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
@Override
public String getName()
{
return name().toLowerCase();
return this.name().toLowerCase();
}
}
@@ -69,7 +69,7 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
this.setLightOpacity( 0 );
this.setFullSize( false );
this.setOpaque( false );
this.setDefaultState( getDefaultState().withProperty( STATE, State.OFF ) );
this.setDefaultState( this.getDefaultState().withProperty( STATE, State.OFF ) );
}
@Override
@@ -83,7 +83,7 @@ public class BlockWireless extends AEBaseTileBlock implements ICustomCollision
{
State teState = State.OFF;
TileWireless te = getTileEntity( worldIn, pos );
TileWireless te = this.getTileEntity( worldIn, pos );
if( te != null )
{
if( te.isActive() )
@@ -45,7 +45,7 @@ public class CableBusRendering extends BlockRenderingCustomizer
@SideOnly( Side.CLIENT )
public void customize( IBlockRendering rendering, IItemRendering itemRendering )
{
rendering.builtInModel( "models/block/builtin/cable_bus", new CableBusModel( partModels ) );
rendering.builtInModel( "models/block/builtin/cable_bus", new CableBusModel( this.partModels ) );
rendering.blockColor( new CableBusColor() );
rendering.modelCustomizer( ( loc, model ) -> model );
}
@@ -75,7 +75,7 @@ public class BlockPaint extends AEBaseTileBlock
{
IExtendedBlockState extState = (IExtendedBlockState) state;
TilePaint te = getTileEntity( world, pos );
TilePaint te = this.getTileEntity( world, pos );
Collection<Splotch> splotches = Collections.emptyList();
if( te != null )
@@ -66,7 +66,7 @@ class PaintBakedModel implements IBakedModel
// This is the inventory model which should usually not be used other than in special cases
List<BakedQuad> quads = new ArrayList<>( 1 );
CubeBuilder builder = new CubeBuilder( this.vertexFormat, quads );
builder.setTexture( textures[0] );
builder.setTexture( this.textures[0] );
builder.addCube( 0, 0, 0, 16, 16, 16 );
return quads;
}
@@ -81,7 +81,7 @@ class PaintBakedModel implements IBakedModel
List<Splotch> splotches = splotchesState.getSplotches();
CubeBuilder builder = new CubeBuilder( vertexFormat );
CubeBuilder builder = new CubeBuilder( this.vertexFormat );
float offsetConstant = 0.001f;
for( final Splotch s : splotches )
@@ -109,7 +109,7 @@ class PaintBakedModel implements IBakedModel
pos_x = Math.max( buffer, Math.min( 1.0f - buffer, pos_x ) );
pos_y = Math.max( buffer, Math.min( 1.0f - buffer, pos_y ) );
TextureAtlasSprite ico = textures[s.getSeed() % textures.length];
TextureAtlasSprite ico = this.textures[s.getSeed() % this.textures.length];
builder.setTexture( ico );
builder.setCustomUv( s.getSide().getOpposite(), 0, 0, 16, 16 );
@@ -176,7 +176,7 @@ class PaintBakedModel implements IBakedModel
@Override
public TextureAtlasSprite getParticleTexture()
{
return textures[0];
return this.textures[0];
}
@Override
@@ -25,7 +25,7 @@ class PaintSplotches
List<Splotch> getSplotches()
{
return splotches;
return this.splotches;
}
}
@@ -53,7 +53,7 @@ public abstract class BlockQuantumBase extends AEBaseTileBlock implements ICusto
this.boundingBox = new AxisAlignedBB( shave, shave, shave, 1.0f - shave, 1.0f - shave, 1.0f - shave );
this.setLightOpacity( 0 );
this.setFullSize( this.setOpaque( false ) );
this.setDefaultState( getDefaultState().withProperty( FORMED, false ) );
this.setDefaultState( this.getDefaultState().withProperty( FORMED, false ) );
}
@Override
@@ -65,7 +65,7 @@ public abstract class BlockQuantumBase extends AEBaseTileBlock implements ICusto
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] { FORMED_STATE } );
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] { FORMED_STATE } );
}
@Override
@@ -73,7 +73,7 @@ public abstract class BlockQuantumBase extends AEBaseTileBlock implements ICusto
{
IExtendedBlockState extState = (IExtendedBlockState) state;
TileQuantumBridge bridge = getTileEntity( world, pos );
TileQuantumBridge bridge = this.getTileEntity( world, pos );
if( bridge != null )
{
QnbFormedState formedState = new QnbFormedState( bridge.getAdjacentQuantumBridges(), bridge.isCorner(), bridge.isPowered() );
@@ -86,7 +86,7 @@ public abstract class BlockQuantumBase extends AEBaseTileBlock implements ICusto
@Override
public IBlockState getActualState( IBlockState state, IBlockAccess worldIn, BlockPos pos )
{
TileQuantumBridge bridge = getTileEntity( worldIn, pos );
TileQuantumBridge bridge = this.getTileEntity( worldIn, pos );
if( bridge != null )
{
state = state.withProperty( FORMED, bridge.isFormed() );
@@ -79,42 +79,42 @@ class QnbFormedBakedModel implements IBakedModel
// Get the correct base model
if( !( state instanceof IExtendedBlockState ) )
{
return baseModel.getQuads( state, side, rand );
return this.baseModel.getQuads( state, side, rand );
}
IExtendedBlockState extendedBlockState = (IExtendedBlockState) state;
QnbFormedState formedState = extendedBlockState.getValue( BlockQuantumBase.FORMED_STATE );
return getQuads( formedState, state, side, rand );
return this.getQuads( formedState, state, side, rand );
}
private List<BakedQuad> getQuads( QnbFormedState formedState, IBlockState state, EnumFacing side, long rand )
{
CubeBuilder builder = new CubeBuilder( vertexFormat );
CubeBuilder builder = new CubeBuilder( this.vertexFormat );
if( state.getBlock() == linkBlock )
if( state.getBlock() == this.linkBlock )
{
Set<EnumFacing> sides = formedState.getAdjacentQuantumBridges();
this.renderCableAt( builder, 0.11f * 16, glassCableTexture, 0.141f * 16, sides );
this.renderCableAt( builder, 0.11f * 16, this.glassCableTexture, 0.141f * 16, sides );
this.renderCableAt( builder, 0.188f * 16, coveredCableTexture, 0.1875f * 16, sides );
this.renderCableAt( builder, 0.188f * 16, this.coveredCableTexture, 0.1875f * 16, sides );
builder.setTexture( linkTexture );
builder.setTexture( this.linkTexture );
builder.addCube( DEFAULT_RENDER_MIN, DEFAULT_RENDER_MIN, DEFAULT_RENDER_MIN, DEFAULT_RENDER_MAX, DEFAULT_RENDER_MAX, DEFAULT_RENDER_MAX );
}
else
{
if( formedState.isCorner() )
{
this.renderCableAt( builder, 0.188f * 16, coveredCableTexture, 0.05f * 16, formedState.getAdjacentQuantumBridges() );
this.renderCableAt( builder, 0.188f * 16, this.coveredCableTexture, 0.05f * 16, formedState.getAdjacentQuantumBridges() );
builder.setTexture( ringTexture );
builder.setTexture( this.ringTexture );
builder.addCube( DEFAULT_RENDER_MIN, DEFAULT_RENDER_MIN, DEFAULT_RENDER_MIN, DEFAULT_RENDER_MAX, DEFAULT_RENDER_MAX, DEFAULT_RENDER_MAX );
if( formedState.isPowered() )
{
builder.setTexture( lightCornerTexture );
builder.setTexture( this.lightCornerTexture );
builder.setRenderFullBright( true );
for( EnumFacing facing : EnumFacing.values() )
{
@@ -133,7 +133,7 @@ class QnbFormedBakedModel implements IBakedModel
}
else
{
builder.setTexture( ringTexture );
builder.setTexture( this.ringTexture );
builder.addCube( 0, DEFAULT_RENDER_MIN, DEFAULT_RENDER_MIN, 16, DEFAULT_RENDER_MAX, DEFAULT_RENDER_MAX );
@@ -143,7 +143,7 @@ class QnbFormedBakedModel implements IBakedModel
if( formedState.isPowered() )
{
builder.setTexture( lightTexture );
builder.setTexture( this.lightTexture );
builder.setRenderFullBright( true );
for( EnumFacing facing : EnumFacing.values() )
{
@@ -203,7 +203,7 @@ class QnbFormedBakedModel implements IBakedModel
@Override
public boolean isAmbientOcclusion()
{
return baseModel.isAmbientOcclusion();
return this.baseModel.isAmbientOcclusion();
}
@Override
@@ -221,19 +221,19 @@ class QnbFormedBakedModel implements IBakedModel
@Override
public TextureAtlasSprite getParticleTexture()
{
return baseModel.getParticleTexture();
return this.baseModel.getParticleTexture();
}
@Override
public ItemCameraTransforms getItemCameraTransforms()
{
return baseModel.getItemCameraTransforms();
return this.baseModel.getItemCameraTransforms();
}
@Override
public ItemOverrideList getOverrides()
{
return baseModel.getOverrides();
return this.baseModel.getOverrides();
}
public static List<ResourceLocation> getRequiredTextures()
@@ -39,7 +39,7 @@ public class QnbFormedModel implements IModel
@Override
public IBakedModel bake( IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter )
{
IBakedModel ringModel = getBaseModel( MODEL_RING, state, format, bakedTextureGetter );
IBakedModel ringModel = this.getBaseModel( MODEL_RING, state, format, bakedTextureGetter );
return new QnbFormedBakedModel( format, ringModel, bakedTextureGetter );
}
@@ -25,17 +25,17 @@ public class QnbFormedState
public Set<EnumFacing> getAdjacentQuantumBridges()
{
return adjacentQuantumBridges;
return this.adjacentQuantumBridges;
}
public boolean isCorner()
{
return corner;
return this.corner;
}
public boolean isPowered()
{
return powered;
return this.powered;
}
}
@@ -49,7 +49,7 @@ public class BlockSpatialPylon extends AEBaseTileBlock
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] { STATE } );
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] { STATE } );
}
@Override
@@ -57,7 +57,7 @@ public class BlockSpatialPylon extends AEBaseTileBlock
{
IExtendedBlockState extState = (IExtendedBlockState) state;
return extState.withProperty( STATE, getDisplayState( world, pos ) );
return extState.withProperty( STATE, this.getDisplayState( world, pos ) );
}
@Override
@@ -83,7 +83,7 @@ public class BlockSpatialPylon extends AEBaseTileBlock
private int getDisplayState( IBlockAccess world, BlockPos pos )
{
TileSpatialPylon te = getTileEntity( world, pos );
TileSpatialPylon te = this.getTileEntity( world, pos );
if( te == null )
{
@@ -52,7 +52,7 @@ public class BlockChest extends AEBaseTileBlock
public BlockChest()
{
super( Material.IRON );
this.setDefaultState( getDefaultState().withProperty( SLOT_STATE, DriveSlotState.EMPTY ) );
this.setDefaultState( this.getDefaultState().withProperty( SLOT_STATE, DriveSlotState.EMPTY ) );
}
@Override
@@ -72,7 +72,7 @@ public class BlockChest extends AEBaseTileBlock
{
DriveSlotState slotState = DriveSlotState.EMPTY;
TileChest te = getTileEntity( worldIn, pos );
TileChest te = this.getTileEntity( worldIn, pos );
if( te != null )
{
@@ -63,7 +63,7 @@ public class BlockDrive extends AEBaseTileBlock
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, getAEStates(), new IUnlistedProperty[] {
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] {
SLOTS_STATE,
FORWARD,
UP
@@ -73,7 +73,7 @@ public class BlockDrive extends AEBaseTileBlock
@Override
public IBlockState getExtendedState( IBlockState state, IBlockAccess world, BlockPos pos )
{
TileDrive te = getTileEntity( world, pos );
TileDrive te = this.getTileEntity( world, pos );
if( te == null )
{
return super.getExtendedState( state, world, pos );
@@ -88,7 +88,7 @@ public class BlockSkyChest extends AEBaseTileBlock implements ICustomCollision
@Override
public Iterable<AxisAlignedBB> getSelectedBoundingBoxesFromPool( final World w, final BlockPos pos, final Entity thePlayer, final boolean b )
{
final AxisAlignedBB aabb = computeAABB( w, pos );
final AxisAlignedBB aabb = this.computeAABB( w, pos );
return Collections.singletonList( aabb );
}
@@ -96,7 +96,7 @@ public class BlockSkyChest extends AEBaseTileBlock implements ICustomCollision
@Override
public void addCollidingBlockToList( final World w, final BlockPos pos, final AxisAlignedBB bb, final List<AxisAlignedBB> out, final Entity e )
{
final AxisAlignedBB aabb = computeAABB( w, pos );
final AxisAlignedBB aabb = this.computeAABB( w, pos );
out.add( aabb );
}
@@ -53,7 +53,7 @@ public enum DriveSlotState implements IStringSerializable
@Override
public String getName()
{
return name;
return this.name;
}
public static DriveSlotState fromCellStatus( int cellStatus )
@@ -37,16 +37,16 @@ public class DriveSlotsState
public DriveSlotState getState( int index )
{
if( index >= slots.length )
if( index >= this.slots.length )
{
return DriveSlotState.EMPTY;
}
return slots[index];
return this.slots[index];
}
public int getSlotCount()
{
return slots.length;
return this.slots.length;
}
/**
@@ -46,7 +46,7 @@ public class SkyChestRenderingCustomizer extends BlockRenderingCustomizer
rendering.tesr( new SkyChestTESR() );
// Register a custom non-tesr item model
String modelName = getModelFromType();
String modelName = this.getModelFromType();
ModelResourceLocation model = new ModelResourceLocation( "appliedenergistics2:" + modelName, "inventory" );
itemRendering.model( model ).variants( model );
}
@@ -54,7 +54,7 @@ public class SkyChestRenderingCustomizer extends BlockRenderingCustomizer
private String getModelFromType()
{
final String modelName;
switch( type )
switch( this.type )
{
default:
case STONE: