Class Sprite

java.lang.Object
net.minecraft.client.texture.Sprite
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
MissingSprite

@Environment(CLIENT)
public class Sprite
extends Object
implements AutoCloseable
  • Field Details

    • field_28464

      private static final Logger field_28464
    • atlas

      private final SpriteAtlasTexture atlas
    • field_28465

      private final Identifier field_28465
    • field_28466

      private final int field_28466
    • field_28467

      private final int field_28467
    • images

      protected final NativeImage[] images
    • field_28468

      @Nullable private final Sprite.class_5790 field_28468
    • x

      private final int x
    • y

      private final int y
    • uMin

      private final float uMin
    • uMax

      private final float uMax
    • vMin

      private final float vMin
    • vMax

      private final float vMax
  • Constructor Details

  • Method Details

    • getFrameCount

      private int getFrameCount()
    • method_33437

      @Nullable private Sprite.class_5790 method_33437​(Sprite.Info info, int int2, int int3, int int4)
    • upload

      private void upload​(int frameX, int frameY, NativeImage[] output)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getMinU

      public float getMinU()
    • getMaxU

      public float getMaxU()
    • getFrameU

      public float getFrameU​(double frame)
    • getMinV

      public float getMinV()
    • getMaxV

      public float getMaxV()
    • getFrameV

      public float getFrameV​(double frame)
    • getId

      public Identifier getId()
    • getAtlas

      public SpriteAtlasTexture getAtlas()
    • method_33442

      public IntStream method_33442()
    • close

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

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

      public boolean isPixelTransparent​(int frame, int x, int y)
    • upload

      public void upload()
    • getFrameDeltaFactor

      private float getFrameDeltaFactor()
    • getAnimationFrameDelta

      public float getAnimationFrameDelta()
    • method_33443

      @Nullable public TextureTickListener method_33443()
    • getTextureSpecificVertexConsumer

      public VertexConsumer getTextureSpecificVertexConsumer​(VertexConsumer vertexConsumer)