public class TextureAtlasSprite extends Object implements Icon
Modifier and Type | Method and Description |
---|---|
void |
clearFramesTextureData() |
void |
copyFrom(TextureAtlasSprite par1TextureAtlasSprite) |
int |
getFrameCount() |
int[] |
getFrameTextureData(int par1) |
int |
getIconHeight()
Returns the height of the icon, in pixels.
|
String |
getIconName() |
int |
getIconWidth()
Returns the width of the icon, in pixels.
|
float |
getInterpolatedU(double par1)
Gets a U coordinate on the icon.
|
float |
getInterpolatedV(double par1)
Gets a V coordinate on the icon.
|
float |
getMaxU()
Returns the maximum U coordinate to use when rendering with this icon.
|
float |
getMaxV()
Returns the maximum V coordinate to use when rendering with this icon.
|
float |
getMinU()
Returns the minimum U coordinate to use when rendering with this icon.
|
float |
getMinV()
Returns the minimum V coordinate to use when rendering with this icon.
|
int |
getOriginX()
Returns the X position of this icon on its texture sheet, in pixels.
|
int |
getOriginY()
Returns the Y position of this icon on its texture sheet, in pixels.
|
boolean |
hasAnimationMetadata() |
void |
initSprite(int par1,
int par2,
int par3,
int par4,
boolean par5) |
boolean |
load(ResourceManager manager,
ResourceLocation location)
Load the specified resource as this sprite's data.
|
void |
loadSprite(Resource par1Resource) |
void |
setFramesTextureData(List par1List) |
void |
setIconHeight(int par1) |
void |
setIconWidth(int par1) |
String |
toString() |
void |
updateAnimation() |
public void initSprite(int par1, int par2, int par3, int par4, boolean par5)
public void copyFrom(TextureAtlasSprite par1TextureAtlasSprite)
public int getOriginX()
public int getOriginY()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public float getMinU()
public float getMaxU()
public float getInterpolatedU(double par1)
getInterpolatedU
in interface Icon
public float getMinV()
public float getMaxV()
public float getInterpolatedV(double par1)
getInterpolatedV
in interface Icon
public String getIconName()
getIconName
in interface Icon
public void updateAnimation()
public int[] getFrameTextureData(int par1)
public int getFrameCount()
public void setIconWidth(int par1)
public void setIconHeight(int par1)
public void loadSprite(Resource par1Resource) throws IOException
IOException
public void clearFramesTextureData()
public boolean hasAnimationMetadata()
public void setFramesTextureData(List par1List)
public boolean load(ResourceManager manager, ResourceLocation location) throws IOException
manager
- Main resource managerlocation
- File resource locationIOException