2013-12-27 23:59:59 +01:00
|
|
|
package appeng.client.texture;
|
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
import net.minecraft.util.IIcon;
|
2013-12-27 23:59:59 +01:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
public class FullIcon implements IIcon
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
private IIcon p;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
public FullIcon(IIcon o) {
|
2013-12-27 23:59:59 +01:00
|
|
|
p = o;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public float getMinU()
|
|
|
|
{
|
|
|
|
return p.getMinU();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public float getMaxU()
|
|
|
|
{
|
|
|
|
return p.getMaxU();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public float getInterpolatedU(double d0)
|
|
|
|
{
|
|
|
|
if ( d0 > 8.0 )
|
|
|
|
return p.getMaxU();
|
|
|
|
return p.getMinU();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public float getMinV()
|
|
|
|
{
|
|
|
|
return p.getMinV();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public float getMaxV()
|
|
|
|
{
|
|
|
|
return p.getMaxV();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public float getInterpolatedV(double d0)
|
|
|
|
{
|
|
|
|
if ( d0 > 8.0 )
|
|
|
|
return p.getMaxV();
|
|
|
|
return p.getMinV();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public String getIconName()
|
|
|
|
{
|
|
|
|
return p.getIconName();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getIconWidth()
|
|
|
|
{
|
|
|
|
return p.getIconWidth();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getIconHeight()
|
|
|
|
{
|
|
|
|
return p.getIconHeight();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|