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
@@ -146,7 +146,7 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
{
final EnumFacing facingRight, facingUp;
AEPartLocation location = getSide();
AEPartLocation location = this.getSide();
switch( location )
{
case UP:
@@ -598,7 +598,7 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
@Override
public IPartModel getStaticModels()
{
return MODELS.getModel( getConnections(), isPowered(), isActive() );
return MODELS.getModel( this.getConnections(), this.isPowered(), this.isActive() );
}
}
@@ -360,11 +360,11 @@ public class PartExportBus extends PartSharedItemBus implements ICraftingRequest
@Override
public IPartModel getStaticModels()
{
if( isActive() && isPowered() )
if( this.isActive() && this.isPowered() )
{
return MODELS_HAS_CHANNEL;
}
else if( isPowered() )
else if( this.isPowered() )
{
return MODELS_ON;
}
@@ -281,7 +281,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
{
final EnumFacing facingRight, facingUp;
AEPartLocation location = getSide();
AEPartLocation location = this.getSide();
switch( location )
{
case UP:
@@ -617,7 +617,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
@Override
public IPartModel getStaticModels()
{
return MODELS.getModel( getConnections(), isPowered(), isActive() );
return MODELS.getModel( this.getConnections(), this.isPowered(), this.isActive() );
}
}
@@ -108,7 +108,7 @@ public class PartIdentityAnnihilationPlane extends PartAnnihilationPlane
@Override
public IPartModel getStaticModels()
{
return MODELS.getModel( getConnections(), isPowered(), isActive() );
return MODELS.getModel( this.getConnections(), this.isPowered(), this.isActive() );
}
}
@@ -317,11 +317,11 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
@Override
public IPartModel getStaticModels()
{
if( isActive() && isPowered() )
if( this.isActive() && this.isPowered() )
{
return MODELS_HAS_CHANNEL;
}
else if( isPowered() )
else if( this.isPowered() )
{
return MODELS_ON;
}
@@ -563,17 +563,17 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
@Override
public IPartModel getStaticModels()
{
if( isActive() && isPowered() )
if( this.isActive() && this.isPowered() )
{
return isLevelEmitterOn() ? MODEL_ON_HAS_CHANNEL : MODEL_OFF_HAS_CHANNEL;
return this.isLevelEmitterOn() ? MODEL_ON_HAS_CHANNEL : MODEL_OFF_HAS_CHANNEL;
}
else if( isPowered() )
else if( this.isPowered() )
{
return isLevelEmitterOn() ? MODEL_ON_ON : MODEL_OFF_ON;
return this.isLevelEmitterOn() ? MODEL_ON_ON : MODEL_OFF_ON;
}
else
{
return isLevelEmitterOn() ? MODEL_ON_OFF : MODEL_OFF_OFF;
return this.isLevelEmitterOn() ? MODEL_ON_OFF : MODEL_OFF_OFF;
}
}
}
@@ -76,7 +76,7 @@ public class PlaneBakedModel implements IBakedModel
{
if( side == null )
{
return quads;
return this.quads;
}
else
{
@@ -105,7 +105,7 @@ public class PlaneBakedModel implements IBakedModel
@Override
public TextureAtlasSprite getParticleTexture()
{
return frontTexture;
return this.frontTexture;
}
@Override
@@ -76,28 +76,28 @@ public final class PlaneConnections
public boolean isUp()
{
return up;
return this.up;
}
public boolean isRight()
{
return right;
return this.right;
}
public boolean isDown()
{
return down;
return this.down;
}
public boolean isLeft()
{
return left;
return this.left;
}
// The combination of connections expressed as a number ranging from [0,15]
public int getIndex()
{
return getIndex( up, right, down, left );
return getIndex( this.up, this.right, this.down, this.left );
}
private static int getIndex( boolean up, boolean right, boolean down, boolean left )
@@ -108,7 +108,7 @@ public final class PlaneConnections
// Returns a suffix that expresses the connection states as a string
public String getFilenameSuffix()
{
String suffix = Integer.toBinaryString( getIndex() );
String suffix = Integer.toBinaryString( this.getIndex() );
return Strings.padStart( suffix, 4, '0' );
}
@@ -119,22 +119,22 @@ public final class PlaneConnections
{
return true;
}
if( o == null || getClass() != o.getClass() )
if( o == null || this.getClass() != o.getClass() )
{
return false;
}
PlaneConnections that = (PlaneConnections) o;
return up == that.up && right == that.right && down == that.down && left == that.left;
return this.up == that.up && this.right == that.right && this.down == that.down && this.left == that.left;
}
@Override
public int hashCode()
{
int result = ( up ? 1 : 0 );
result = 31 * result + ( right ? 1 : 0 );
result = 31 * result + ( down ? 1 : 0 );
result = 31 * result + ( left ? 1 : 0 );
int result = ( this.up ? 1 : 0 );
result = 31 * result + ( this.right ? 1 : 0 );
result = 31 * result + ( this.down ? 1 : 0 );
result = 31 * result + ( this.left ? 1 : 0 );
return result;
}
}
@@ -62,17 +62,17 @@ public class PlaneModel implements IModel
@Override
public Collection<ResourceLocation> getTextures()
{
return Lists.newArrayList( frontTexture, sidesTexture, backTexture );
return Lists.newArrayList( this.frontTexture, this.sidesTexture, this.backTexture );
}
@Override
public IBakedModel bake( IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter )
{
TextureAtlasSprite frontSprite = bakedTextureGetter.apply( frontTexture );
TextureAtlasSprite sidesSprite = bakedTextureGetter.apply( sidesTexture );
TextureAtlasSprite backSprite = bakedTextureGetter.apply( backTexture );
TextureAtlasSprite frontSprite = bakedTextureGetter.apply( this.frontTexture );
TextureAtlasSprite sidesSprite = bakedTextureGetter.apply( this.sidesTexture );
TextureAtlasSprite backSprite = bakedTextureGetter.apply( this.backTexture );
return new PlaneBakedModel( format, frontSprite, sidesSprite, backSprite, connections );
return new PlaneBakedModel( format, frontSprite, sidesSprite, backSprite, this.connections );
}
@Override
@@ -74,24 +74,24 @@ class PlaneModels
{
if( hasPower && hasChannel )
{
return modelsHasChannel.get( connections );
return this.modelsHasChannel.get( connections );
}
else if( hasPower )
{
return modelsOn.get( connections );
return this.modelsOn.get( connections );
}
else
{
return modelsOff.get( connections );
return this.modelsOff.get( connections );
}
}
public List<IPartModel> getModels()
{
List<IPartModel> result = new ArrayList<>();
modelsOff.values().forEach( result::add );
modelsOn.values().forEach( result::add );
modelsHasChannel.values().forEach( result::add );
this.modelsOff.values().forEach( result::add );
this.modelsOn.values().forEach( result::add );
this.modelsHasChannel.values().forEach( result::add );
return result;
}