Changed access to use this qualifier
This commit is contained in:
@@ -97,7 +97,7 @@ public enum CableBusTextures
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
return this.name;
|
||||
}
|
||||
|
||||
private CableBusTextures(String name) {
|
||||
@@ -106,12 +106,12 @@ public enum CableBusTextures
|
||||
|
||||
public IIcon getIcon()
|
||||
{
|
||||
return IIcon;
|
||||
return this.IIcon;
|
||||
}
|
||||
|
||||
public void registerIcon(TextureMap map)
|
||||
{
|
||||
IIcon = map.registerIcon( "appliedenergistics2:" + name );
|
||||
this.IIcon = map.registerIcon( "appliedenergistics2:" + this.name );
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -107,7 +107,7 @@ public enum ExtraBlockTextures
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
return this.name;
|
||||
}
|
||||
|
||||
private ExtraBlockTextures(String name) {
|
||||
@@ -116,12 +116,12 @@ public enum ExtraBlockTextures
|
||||
|
||||
public IIcon getIcon()
|
||||
{
|
||||
return IIcon;
|
||||
return this.IIcon;
|
||||
}
|
||||
|
||||
public void registerIcon(TextureMap map)
|
||||
{
|
||||
IIcon = map.registerIcon( "appliedenergistics2:" + name );
|
||||
this.IIcon = map.registerIcon( "appliedenergistics2:" + this.name );
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -45,7 +45,7 @@ public enum ExtraItemTextures
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
return this.name;
|
||||
}
|
||||
|
||||
private ExtraItemTextures(String name) {
|
||||
@@ -54,12 +54,12 @@ public enum ExtraItemTextures
|
||||
|
||||
public IIcon getIcon()
|
||||
{
|
||||
return IIcon;
|
||||
return this.IIcon;
|
||||
}
|
||||
|
||||
public void registerIcon(TextureMap map)
|
||||
{
|
||||
IIcon = map.registerIcon( "appliedenergistics2:" + name );
|
||||
this.IIcon = map.registerIcon( "appliedenergistics2:" + this.name );
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -32,92 +32,92 @@ public class FlippableIcon implements IIcon
|
||||
if ( o == null )
|
||||
throw new RuntimeException( "Cannot create a wrapper icon with a null icon." );
|
||||
|
||||
original = o;
|
||||
flip_u = false;
|
||||
flip_v = false;
|
||||
this.original = o;
|
||||
this.flip_u = false;
|
||||
this.flip_v = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return original.getIconWidth();
|
||||
return this.original.getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return original.getIconHeight();
|
||||
return this.original.getIconHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinU()
|
||||
{
|
||||
if ( flip_u )
|
||||
return original.getMaxU();
|
||||
return original.getMinU();
|
||||
if ( this.flip_u )
|
||||
return this.original.getMaxU();
|
||||
return this.original.getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxU()
|
||||
{
|
||||
if ( flip_u )
|
||||
return original.getMinU();
|
||||
return original.getMaxU();
|
||||
if ( this.flip_u )
|
||||
return this.original.getMinU();
|
||||
return this.original.getMaxU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedU(double px)
|
||||
{
|
||||
if ( flip_u )
|
||||
return original.getInterpolatedU( 16 - px );
|
||||
return original.getInterpolatedU( px );
|
||||
if ( this.flip_u )
|
||||
return this.original.getInterpolatedU( 16 - px );
|
||||
return this.original.getInterpolatedU( px );
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinV()
|
||||
{
|
||||
if ( flip_v )
|
||||
return original.getMaxV();
|
||||
return original.getMinV();
|
||||
if ( this.flip_v )
|
||||
return this.original.getMaxV();
|
||||
return this.original.getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxV()
|
||||
{
|
||||
if ( flip_v )
|
||||
return original.getMinV();
|
||||
return original.getMaxV();
|
||||
if ( this.flip_v )
|
||||
return this.original.getMinV();
|
||||
return this.original.getMaxV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedV(double px)
|
||||
{
|
||||
if ( flip_v )
|
||||
return original.getInterpolatedV( 16 - px );
|
||||
return original.getInterpolatedV( px );
|
||||
if ( this.flip_v )
|
||||
return this.original.getInterpolatedV( 16 - px );
|
||||
return this.original.getInterpolatedV( px );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIconName()
|
||||
{
|
||||
return original.getIconName();
|
||||
return this.original.getIconName();
|
||||
}
|
||||
|
||||
public IIcon getOriginal()
|
||||
{
|
||||
return original;
|
||||
return this.original;
|
||||
}
|
||||
|
||||
public void setFlip(boolean u, boolean v)
|
||||
{
|
||||
flip_u = u;
|
||||
flip_v = v;
|
||||
this.flip_u = u;
|
||||
this.flip_v = v;
|
||||
}
|
||||
|
||||
public int setFlip(int orientation)
|
||||
{
|
||||
flip_u = (orientation & 8) == 8;
|
||||
flip_v = (orientation & 16) == 16;
|
||||
this.flip_u = (orientation & 8) == 8;
|
||||
this.flip_v = (orientation & 16) == 16;
|
||||
return orientation & 7;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,21 +32,21 @@ public class FullIcon implements IIcon
|
||||
if ( o == null )
|
||||
throw new RuntimeException("Cannot create a wrapper icon with a null icon.");
|
||||
|
||||
p = o;
|
||||
this.p = o;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinU()
|
||||
{
|
||||
return p.getMinU();
|
||||
return this.p.getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxU()
|
||||
{
|
||||
return p.getMaxU();
|
||||
return this.p.getMaxU();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -54,22 +54,22 @@ public class FullIcon implements IIcon
|
||||
public float getInterpolatedU(double d0)
|
||||
{
|
||||
if ( d0 > 8.0 )
|
||||
return p.getMaxU();
|
||||
return p.getMinU();
|
||||
return this.p.getMaxU();
|
||||
return this.p.getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinV()
|
||||
{
|
||||
return p.getMinV();
|
||||
return this.p.getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxV()
|
||||
{
|
||||
return p.getMaxV();
|
||||
return this.p.getMaxV();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -77,27 +77,27 @@ public class FullIcon implements IIcon
|
||||
public float getInterpolatedV(double d0)
|
||||
{
|
||||
if ( d0 > 8.0 )
|
||||
return p.getMaxV();
|
||||
return p.getMinV();
|
||||
return this.p.getMaxV();
|
||||
return this.p.getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getIconName()
|
||||
{
|
||||
return p.getIconName();
|
||||
return this.p.getIconName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return p.getIconWidth();
|
||||
return this.p.getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return p.getIconHeight();
|
||||
return this.p.getIconHeight();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -31,68 +31,68 @@ public class MissingIcon implements IIcon
|
||||
final boolean isBlock;
|
||||
|
||||
public MissingIcon(Object forWhat) {
|
||||
isBlock = forWhat instanceof Block;
|
||||
this.isBlock = forWhat instanceof Block;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getMissing()
|
||||
{
|
||||
return ((TextureMap) Minecraft.getMinecraft().getTextureManager()
|
||||
.getTexture( isBlock ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture )).getAtlasSprite( "missingno" );
|
||||
.getTexture( this.isBlock ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture )).getAtlasSprite( "missingno" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return getMissing().getIconWidth();
|
||||
return this.getMissing().getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return getMissing().getIconHeight();
|
||||
return this.getMissing().getIconHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinU()
|
||||
{
|
||||
return getMissing().getMinU();
|
||||
return this.getMissing().getMinU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxU()
|
||||
{
|
||||
return getMissing().getMaxU();
|
||||
return this.getMissing().getMaxU();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedU(double var1)
|
||||
{
|
||||
return getMissing().getInterpolatedU( var1 );
|
||||
return this.getMissing().getInterpolatedU( var1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinV()
|
||||
{
|
||||
return getMissing().getMinV();
|
||||
return this.getMissing().getMinV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxV()
|
||||
{
|
||||
return getMissing().getMaxV();
|
||||
return this.getMissing().getMaxV();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolatedV(double var1)
|
||||
{
|
||||
return getMissing().getInterpolatedV( var1 );
|
||||
return this.getMissing().getInterpolatedV( var1 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIconName()
|
||||
{
|
||||
return getMissing().getIconName();
|
||||
return this.getMissing().getIconName();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,80 +35,80 @@ public class OffsetIcon implements IIcon
|
||||
if ( o == null )
|
||||
throw new RuntimeException("Cannot create a wrapper icon with a null icon.");
|
||||
|
||||
p = o;
|
||||
offsetX = x;
|
||||
offsetY = y;
|
||||
this.p = o;
|
||||
this.offsetX = x;
|
||||
this.offsetY = y;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinU()
|
||||
{
|
||||
return u( 0 - offsetX );
|
||||
return this.u( 0 - this.offsetX );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxU()
|
||||
{
|
||||
return u( 16 - offsetX );
|
||||
return this.u( 16 - this.offsetX );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getInterpolatedU(double d0)
|
||||
{
|
||||
return u( d0 - offsetX );
|
||||
return this.u( d0 - this.offsetX );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinV()
|
||||
{
|
||||
return v( 0 - offsetY );
|
||||
return this.v( 0 - this.offsetY );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxV()
|
||||
{
|
||||
return v( 16 - offsetY );
|
||||
return this.v( 16 - this.offsetY );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getInterpolatedV(double d0)
|
||||
{
|
||||
return v( d0 - offsetY );
|
||||
return this.v( d0 - this.offsetY );
|
||||
}
|
||||
|
||||
private float v(double d)
|
||||
{
|
||||
return p.getInterpolatedV( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
return this.p.getInterpolatedV( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
}
|
||||
|
||||
private float u(double d)
|
||||
{
|
||||
return p.getInterpolatedU( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
return this.p.getInterpolatedU( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getIconName()
|
||||
{
|
||||
return p.getIconName();
|
||||
return this.p.getIconName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return p.getIconWidth();
|
||||
return this.p.getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return p.getIconHeight();
|
||||
return this.p.getIconHeight();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TaughtIcon implements IIcon
|
||||
if ( o == null )
|
||||
throw new RuntimeException("Cannot create a wrapper icon with a null icon.");
|
||||
|
||||
p = o;
|
||||
this.p = o;
|
||||
this.tightness = tightness * 0.4f;
|
||||
}
|
||||
|
||||
@@ -42,79 +42,79 @@ public class TaughtIcon implements IIcon
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinU()
|
||||
{
|
||||
return u( 0 );
|
||||
return this.u( 0 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxU()
|
||||
{
|
||||
return u( 16 );
|
||||
return this.u( 16 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getInterpolatedU(double d0)
|
||||
{
|
||||
return u( d0 );
|
||||
return this.u( d0 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMinV()
|
||||
{
|
||||
return v( 0 );
|
||||
return this.v( 0 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getMaxV()
|
||||
{
|
||||
return v( 16 );
|
||||
return this.v( 16 );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getInterpolatedV(double d0)
|
||||
{
|
||||
return v( d0 );
|
||||
return this.v( d0 );
|
||||
}
|
||||
|
||||
private float v(double d)
|
||||
{
|
||||
if ( d < 8 )
|
||||
d -= tightness;
|
||||
d -= this.tightness;
|
||||
if ( d > 8 )
|
||||
d += tightness;
|
||||
return p.getInterpolatedV( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
d += this.tightness;
|
||||
return this.p.getInterpolatedV( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
}
|
||||
|
||||
private float u(double d)
|
||||
{
|
||||
if ( d < 8 )
|
||||
d -= tightness;
|
||||
d -= this.tightness;
|
||||
if ( d > 8 )
|
||||
d += tightness;
|
||||
return p.getInterpolatedU( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
d += this.tightness;
|
||||
return this.p.getInterpolatedU( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getIconName()
|
||||
{
|
||||
return p.getIconName();
|
||||
return this.p.getIconName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth()
|
||||
{
|
||||
return p.getIconWidth();
|
||||
return this.p.getIconWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight()
|
||||
{
|
||||
return p.getIconHeight();
|
||||
return this.p.getIconHeight();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class TmpFlippableIcon extends FlippableIcon
|
||||
|
||||
public void setOriginal(IIcon i)
|
||||
{
|
||||
setFlip( false, false );
|
||||
this.setFlip( false, false );
|
||||
|
||||
while (i instanceof FlippableIcon)
|
||||
{
|
||||
@@ -47,9 +47,9 @@ public class TmpFlippableIcon extends FlippableIcon
|
||||
}
|
||||
|
||||
if ( i == null )
|
||||
original = nullIcon;
|
||||
this.original = nullIcon;
|
||||
else
|
||||
original = i;
|
||||
this.original = i;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user