public class TextureStitched extends Object implements Icon
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(TextureStitched par1TextureStitched) |
void |
createAndUploadTextures() |
String |
getIconName() |
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.
|
int |
getSheetHeight()
Returns the height of the texture sheet this icon is on, in pixels.
|
int |
getSheetWidth()
Returns the width of the texture sheet this icon is on, in pixels.
|
void |
init(Texture par1Texture,
List par2List,
int par3,
int par4,
int par5,
int par6,
boolean par7) |
boolean |
loadTexture(TextureManager manager,
ITexturePack texturepack,
String name,
String fileName,
BufferedImage image,
ArrayList textures)
Called when texture packs are refreshed, from TextureManager.createNewTexture,
allows for finer control over loading the animation lists and verification of the image.
|
static TextureStitched |
makeTextureStitched(String par0Str) |
void |
readAnimationInfo(BufferedReader par1BufferedReader) |
void |
updateAnimation() |
public static TextureStitched makeTextureStitched(String par0Str)
public void init(Texture par1Texture, List par2List, int par3, int par4, int par5, int par6, boolean par7)
public void copyFrom(TextureStitched par1TextureStitched)
public int getOriginX()
getOriginX
in interface Icon
public int getOriginY()
getOriginY
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 int getSheetWidth()
getSheetWidth
in interface Icon
public int getSheetHeight()
getSheetHeight
in interface Icon
public void updateAnimation()
public void readAnimationInfo(BufferedReader par1BufferedReader)
public void createAndUploadTextures()
public boolean loadTexture(TextureManager manager, ITexturePack texturepack, String name, String fileName, BufferedImage image, ArrayList textures)
manager
- The invoking managertexturepack
- Current texture packname
- The name of the texturefileName
- Resource path for this textureimage
- Buffered image of the loaded resourcetextures
- ArrayList of element type Texture, split textures should be added to this list for the stitcher to handle.