YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.renderer.texture.TextureStitched Class Reference
Inheritance diagram for net.minecraft.client.renderer.texture.TextureStitched:
net.minecraft.util.Icon net.minecraft.client.renderer.texture.TextureClock net.minecraft.client.renderer.texture.TextureCompass

Public Member Functions

void init (Texture par1Texture, List par2List, int par3, int par4, int par5, int par6, boolean par7)
 
void copyFrom (TextureStitched par1TextureStitched)
 
int getOriginX ()
 
int getOriginY ()
 
float getMinU ()
 
float getMaxU ()
 
float getInterpolatedU (double par1)
 
float getMinV ()
 
float getMaxV ()
 
float getInterpolatedV (double par1)
 
String getIconName ()
 
int getSheetWidth ()
 
int getSheetHeight ()
 
void updateAnimation ()
 
void readAnimationInfo (BufferedReader par1BufferedReader)
 
void createAndUploadTextures ()
 
boolean loadTexture (TextureManager manager, ITexturePack texturepack, String name, String fileName, BufferedImage image, ArrayList textures)
 

Static Public Member Functions

static TextureStitched makeTextureStitched (String par0Str)
 

Protected Member Functions

 TextureStitched (String par1)
 

Protected Attributes

Texture textureSheet
 
List textureList
 
boolean rotated
 
int originX
 
int originY
 
int frameCounter = 0
 
int tickCounter = 0
 

Constructor & Destructor Documentation

net.minecraft.client.renderer.texture.TextureStitched.TextureStitched ( String  par1)
protected

Member Function Documentation

void net.minecraft.client.renderer.texture.TextureStitched.copyFrom ( TextureStitched  par1TextureStitched)
void net.minecraft.client.renderer.texture.TextureStitched.createAndUploadTextures ( )
String net.minecraft.client.renderer.texture.TextureStitched.getIconName ( )
float net.minecraft.client.renderer.texture.TextureStitched.getInterpolatedU ( double  par1)

Gets a U coordinate on the icon. 0 returns uMin and 16 returns uMax. Other arguments return in-between values.

Implements net.minecraft.util.Icon.

float net.minecraft.client.renderer.texture.TextureStitched.getInterpolatedV ( double  par1)

Gets a V coordinate on the icon. 0 returns vMin and 16 returns vMax. Other arguments return in-between values.

Implements net.minecraft.util.Icon.

float net.minecraft.client.renderer.texture.TextureStitched.getMaxU ( )

Returns the maximum U coordinate to use when rendering with this icon.

Implements net.minecraft.util.Icon.

float net.minecraft.client.renderer.texture.TextureStitched.getMaxV ( )

Returns the maximum V coordinate to use when rendering with this icon.

Implements net.minecraft.util.Icon.

float net.minecraft.client.renderer.texture.TextureStitched.getMinU ( )

Returns the minimum U coordinate to use when rendering with this icon.

Implements net.minecraft.util.Icon.

float net.minecraft.client.renderer.texture.TextureStitched.getMinV ( )

Returns the minimum V coordinate to use when rendering with this icon.

Implements net.minecraft.util.Icon.

int net.minecraft.client.renderer.texture.TextureStitched.getOriginX ( )

Returns the X position of this icon on its texture sheet, in pixels.

Implements net.minecraft.util.Icon.

int net.minecraft.client.renderer.texture.TextureStitched.getOriginY ( )

Returns the Y position of this icon on its texture sheet, in pixels.

Implements net.minecraft.util.Icon.

int net.minecraft.client.renderer.texture.TextureStitched.getSheetHeight ( )

Returns the height of the texture sheet this icon is on, in pixels.

Implements net.minecraft.util.Icon.

int net.minecraft.client.renderer.texture.TextureStitched.getSheetWidth ( )

Returns the width of the texture sheet this icon is on, in pixels.

Implements net.minecraft.util.Icon.

void net.minecraft.client.renderer.texture.TextureStitched.init ( Texture  par1Texture,
List  par2List,
int  par3,
int  par4,
int  par5,
int  par6,
boolean  par7 
)
boolean net.minecraft.client.renderer.texture.TextureStitched.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. If the return value from this is true, no further loading will be done by vanilla code.

You need to add all Texture's to the textures argument. At the end of this function at least one entry should be in that argument, or a error should of been thrown.

Parameters
managerThe invoking manager
texturepackCurrent texture pack
nameThe name of the texture
fileNameResource path for this texture
imageBuffered image of the loaded resource
texturesArrayList of element type Texture, split textures should be added to this list for the stitcher to handle.
Returns
Return true to skip further vanilla texture loading for this texture
static TextureStitched net.minecraft.client.renderer.texture.TextureStitched.makeTextureStitched ( String  par0Str)
static
void net.minecraft.client.renderer.texture.TextureStitched.readAnimationInfo ( BufferedReader  par1BufferedReader)
void net.minecraft.client.renderer.texture.TextureStitched.updateAnimation ( )

Member Data Documentation

int net.minecraft.client.renderer.texture.TextureStitched.frameCounter = 0
protected
int net.minecraft.client.renderer.texture.TextureStitched.originX
protected

x position of this icon on the texture sheet in pixels

int net.minecraft.client.renderer.texture.TextureStitched.originY
protected

y position of this icon on the texture sheet in pixels

boolean net.minecraft.client.renderer.texture.TextureStitched.rotated
protected
List net.minecraft.client.renderer.texture.TextureStitched.textureList
protected
Texture net.minecraft.client.renderer.texture.TextureStitched.textureSheet
protected

texture sheet containing this texture

int net.minecraft.client.renderer.texture.TextureStitched.tickCounter = 0
protected

The documentation for this class was generated from the following file: