final variables and parameters
seeing some methods it does actually help to enforce the parameters
This commit is contained in:
@@ -33,7 +33,7 @@ public class OffsetIcon implements IIcon
|
||||
|
||||
private final IIcon p;
|
||||
|
||||
public OffsetIcon( IIcon o, float x, float y )
|
||||
public OffsetIcon( final IIcon o, final float x, final float y )
|
||||
{
|
||||
if( o == null )
|
||||
{
|
||||
@@ -73,7 +73,7 @@ public class OffsetIcon implements IIcon
|
||||
|
||||
@Override
|
||||
@SideOnly( Side.CLIENT )
|
||||
public float getInterpolatedU( double d0 )
|
||||
public float getInterpolatedU( final double d0 )
|
||||
{
|
||||
return this.u( d0 - this.offsetX );
|
||||
}
|
||||
@@ -94,7 +94,7 @@ public class OffsetIcon implements IIcon
|
||||
|
||||
@Override
|
||||
@SideOnly( Side.CLIENT )
|
||||
public float getInterpolatedV( double d0 )
|
||||
public float getInterpolatedV( final double d0 )
|
||||
{
|
||||
return this.v( d0 - this.offsetY );
|
||||
}
|
||||
@@ -106,12 +106,12 @@ public class OffsetIcon implements IIcon
|
||||
return this.p.getIconName();
|
||||
}
|
||||
|
||||
private float v( double d )
|
||||
private float v( final double d )
|
||||
{
|
||||
return this.p.getInterpolatedV( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
}
|
||||
|
||||
private float u( double d )
|
||||
private float u( final double d )
|
||||
{
|
||||
return this.p.getInterpolatedU( Math.min( 16.0, Math.max( 0.0, d ) ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user