Changed access to use this qualifier
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user