Class TextureAtlasSprite

java.lang.Object
net.minecraft.client.renderer.texture.TextureAtlasSprite
All Implemented Interfaces:
AutoCloseable, IForgeTextureAtlasSprite
Direct Known Subclasses:
MissingTextureAtlasSprite

public class TextureAtlasSprite extends Object implements AutoCloseable, IForgeTextureAtlasSprite
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • atlas

      private final TextureAtlas atlas
    • name

      private final ResourceLocation name
    • width

      final int width
    • height

      final int height
    • mainImage

      protected final NativeImage[] mainImage
    • animatedTexture

      @Nullable private final TextureAtlasSprite.AnimatedTexture animatedTexture
    • x

      private final int x
    • y

      private final int y
    • u0

      private final float u0
    • u1

      private final float u1
    • v0

      private final float v0
    • v1

      private final float v1
  • Constructor Details

  • Method Details

    • getFrameCount

      public int getFrameCount()
    • createTicker

      @Nullable private TextureAtlasSprite.AnimatedTexture createTicker(TextureAtlasSprite.Info p_174730_, int p_174731_, int p_174732_, int p_174733_)
    • upload

      void upload(int p_118376_, int p_118377_, NativeImage[] p_118378_)
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getU0

      public float getU0()
    • getU1

      public float getU1()
    • getU

      public float getU(double p_118368_)
    • getUOffset

      public float getUOffset(float p_174728_)
    • getV0

      public float getV0()
    • getV1

      public float getV1()
    • getV

      public float getV(double p_118394_)
    • getVOffset

      public float getVOffset(float p_174742_)
    • getName

      public ResourceLocation getName()
    • atlas

      public TextureAtlas atlas()
    • getUniqueFrames

      public IntStream getUniqueFrames()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • toString

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

      public boolean isTransparent(int p_118372_, int p_118373_, int p_118374_)
    • uploadFirstFrame

      public void uploadFirstFrame()
    • atlasSize

      private float atlasSize()
    • uvShrinkRatio

      public float uvShrinkRatio()
    • getAnimationTicker

      @Nullable public Tickable getAnimationTicker()
    • wrap

      public VertexConsumer wrap(VertexConsumer p_118382_)
    • getPixelRGBA

      public int getPixelRGBA(int frameIndex, int x, int y)