You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
Java
58 lines
1.4 KiB
Java
package net.minecraft.util;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
public interface IIcon
|
|
{
|
|
/**
|
|
* Returns the width of the icon, in pixels.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
int getIconWidth();
|
|
|
|
/**
|
|
* Returns the height of the icon, in pixels.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
int getIconHeight();
|
|
|
|
/**
|
|
* Returns the minimum U coordinate to use when rendering with this icon.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
float getMinU();
|
|
|
|
/**
|
|
* Returns the maximum U coordinate to use when rendering with this icon.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
float getMaxU();
|
|
|
|
/**
|
|
* Gets a U coordinate on the icon. 0 returns uMin and 16 returns uMax. Other arguments return in-between values.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
float getInterpolatedU(double p_94214_1_);
|
|
|
|
/**
|
|
* Returns the minimum V coordinate to use when rendering with this icon.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
float getMinV();
|
|
|
|
/**
|
|
* Returns the maximum V coordinate to use when rendering with this icon.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
float getMaxV();
|
|
|
|
/**
|
|
* Gets a V coordinate on the icon. 0 returns vMin and 16 returns vMax. Other arguments return in-between values.
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
float getInterpolatedV(double p_94207_1_);
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
String getIconName();
|
|
} |