Package net.minecraft.src
Class TextureAtlasSprite
java.lang.Object
net.minecraft.src.TextureAtlasSprite
- All Implemented Interfaces:
Icon
- Direct Known Subclasses:
ArcaneVesselXPTexture,BorderedTexture,FireTexture,TextureClock,TextureCompass
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intprotected booleanprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcopyFrom(TextureAtlasSprite par1TextureAtlasSprite) protected AnimationMetadataSectionintint[]getFrameTextureData(int par1) intReturns the height of the icon, in pixels.intReturns the width of the icon, in pixels.floatgetInterpolatedU(double par1) Gets a U coordinate on the icon. 0 returns uMin and 16 returns uMax.floatgetInterpolatedV(double par1) Gets a V coordinate on the icon. 0 returns vMin and 16 returns vMax.floatgetMaxU()Returns the maximum U coordinate to use when rendering with this icon.floatgetMaxV()Returns the maximum V coordinate to use when rendering with this icon.floatgetMinU()Returns the minimum U coordinate to use when rendering with this icon.floatgetMinV()Returns the minimum V coordinate to use when rendering with this icon.intReturns the X position of this icon on its texture sheet, in pixels.intReturns the Y position of this icon on its texture sheet, in pixels.booleanvoidinitSprite(int par1, int par2, int par3, int par4, boolean par5) booleanvoidloadSprite(Resource par1Resource) voidsetFramesTextureData(List par1List) voidsetIconHeight(int par1) voidsetIconWidth(int par1) toString()void
-
Field Details
-
framesTextureData
-
rotated
protected boolean rotated -
originX
protected int originX -
originY
protected int originY -
width
protected int width -
height
protected int height -
frameCounter
protected int frameCounter -
tickCounter
protected int tickCounter -
mipmaps
-
-
Constructor Details
-
TextureAtlasSprite
-
-
Method Details
-
initSprite
public void initSprite(int par1, int par2, int par3, int par4, boolean par5) -
copyFrom
-
getOriginX
public int getOriginX()Returns the X position of this icon on its texture sheet, in pixels.- Specified by:
getOriginXin interfaceIcon
-
getOriginY
public int getOriginY()Returns the Y position of this icon on its texture sheet, in pixels.- Specified by:
getOriginYin interfaceIcon
-
getIconWidth
public int getIconWidth()Returns the width of the icon, in pixels.- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()Returns the height of the icon, in pixels.- Specified by:
getIconHeightin interfaceIcon
-
getMinU
public float getMinU()Returns the minimum U coordinate to use when rendering with this icon. -
getMaxU
public float getMaxU()Returns the maximum U coordinate to use when rendering with this icon. -
getInterpolatedU
public float getInterpolatedU(double par1) Gets a U coordinate on the icon. 0 returns uMin and 16 returns uMax. Other arguments return in-between values.- Specified by:
getInterpolatedUin interfaceIcon
-
getMinV
public float getMinV()Returns the minimum V coordinate to use when rendering with this icon. -
getMaxV
public float getMaxV()Returns the maximum V coordinate to use when rendering with this icon. -
getInterpolatedV
public float getInterpolatedV(double par1) Gets a V coordinate on the icon. 0 returns vMin and 16 returns vMax. Other arguments return in-between values.- Specified by:
getInterpolatedVin interfaceIcon
-
getIconName
- Specified by:
getIconNamein interfaceIcon
-
updateAnimation
public void updateAnimation() -
getFrameTextureData
public int[] getFrameTextureData(int par1) -
getFrameCount
public int getFrameCount() -
setIconWidth
public void setIconWidth(int par1) -
setIconHeight
public void setIconHeight(int par1) -
loadSprite
- Throws:
IOException
-
clearFramesTextureData
public void clearFramesTextureData() -
hasAnimationMetadata
public boolean hasAnimationMetadata() -
setFramesTextureData
-
toString
-
getAnimationMetadata
-
isProcedurallyAnimated
public boolean isProcedurallyAnimated()
-