Class TextureAtlasSprite

java.lang.Object
net.minecraft.src.TextureAtlasSprite
All Implemented Interfaces:
Icon
Direct Known Subclasses:
ArcaneVesselXPTexture, BorderedTexture, FireTexture, TextureClock, TextureCompass

public class TextureAtlasSprite extends Object implements Icon
  • Field Details

    • framesTextureData

      public List 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

      public List mipmaps
  • Constructor Details

    • TextureAtlasSprite

      public TextureAtlasSprite(String par1Str)
  • Method Details

    • initSprite

      public void initSprite(int par1, int par2, int par3, int par4, boolean par5)
    • copyFrom

      public void copyFrom(TextureAtlasSprite par1TextureAtlasSprite)
    • getOriginX

      public int getOriginX()
      Returns the X position of this icon on its texture sheet, in pixels.
      Specified by:
      getOriginX in interface Icon
    • getOriginY

      public int getOriginY()
      Returns the Y position of this icon on its texture sheet, in pixels.
      Specified by:
      getOriginY in interface Icon
    • getIconWidth

      public int getIconWidth()
      Returns the width of the icon, in pixels.
      Specified by:
      getIconWidth in interface Icon
    • getIconHeight

      public int getIconHeight()
      Returns the height of the icon, in pixels.
      Specified by:
      getIconHeight in interface Icon
    • getMinU

      public float getMinU()
      Returns the minimum U coordinate to use when rendering with this icon.
      Specified by:
      getMinU in interface Icon
    • getMaxU

      public float getMaxU()
      Returns the maximum U coordinate to use when rendering with this icon.
      Specified by:
      getMaxU in interface 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:
      getInterpolatedU in interface Icon
    • getMinV

      public float getMinV()
      Returns the minimum V coordinate to use when rendering with this icon.
      Specified by:
      getMinV in interface Icon
    • getMaxV

      public float getMaxV()
      Returns the maximum V coordinate to use when rendering with this icon.
      Specified by:
      getMaxV in interface 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:
      getInterpolatedV in interface Icon
    • getIconName

      public String getIconName()
      Specified by:
      getIconName in interface Icon
    • 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

      public void loadSprite(Resource par1Resource) throws IOException
      Throws:
      IOException
    • clearFramesTextureData

      public void clearFramesTextureData()
    • hasAnimationMetadata

      public boolean hasAnimationMetadata()
    • setFramesTextureData

      public void setFramesTextureData(List par1List)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAnimationMetadata

      protected AnimationMetadataSection getAnimationMetadata()
    • isProcedurallyAnimated

      public boolean isProcedurallyAnimated()