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
Mappings:
Namespace Name
official eru
intermediary net/minecraft/class_1058
named net/minecraft/client/texture/Sprite
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Leru;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_28464 Lnet/minecraft/class_1058;field_28464:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/texture/Sprite;LOGGER:Lorg/apache/logging/log4j/Logger;
    • atlas

      private final SpriteAtlasTexture atlas
      Mappings:
      Namespace Name Mixin selector
      official c Leru;c:Lert;
      intermediary field_21750 Lnet/minecraft/class_1058;field_21750:Lnet/minecraft/class_1059;
      named atlas Lnet/minecraft/client/texture/Sprite;atlas:Lnet/minecraft/client/texture/SpriteAtlasTexture;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official d Leru;d:Lwb;
      intermediary field_28465 Lnet/minecraft/class_1058;field_28465:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/client/texture/Sprite;id:Lnet/minecraft/util/Identifier;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official e Leru;e:I
      intermediary field_28466 Lnet/minecraft/class_1058;field_28466:I
      named width Lnet/minecraft/client/texture/Sprite;width:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      official f Leru;f:I
      intermediary field_28467 Lnet/minecraft/class_1058;field_28467:I
      named height Lnet/minecraft/client/texture/Sprite;height:I
    • images

      protected final NativeImage[] images
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a:[Ldky;
      intermediary field_5262 Lnet/minecraft/class_1058;field_5262:[Lnet/minecraft/class_1011;
      named images Lnet/minecraft/client/texture/Sprite;images:[Lnet/minecraft/client/texture/NativeImage;
    • field_28468

      @Nullable private final Sprite.class_5790 field_28468
      Mappings:
      Namespace Name Mixin selector
      official g Leru;g:Leru$a;
      intermediary field_28468 Lnet/minecraft/class_1058;field_28468:Lnet/minecraft/class_1058$class_5790;
      named field_28468 Lnet/minecraft/client/texture/Sprite;field_28468:Lnet/minecraft/client/texture/Sprite$class_5790;
    • x

      private final int x
      Mappings:
      Namespace Name Mixin selector
      official h Leru;h:I
      intermediary field_5258 Lnet/minecraft/class_1058;field_5258:I
      named x Lnet/minecraft/client/texture/Sprite;x:I
    • y

      private final int y
      Mappings:
      Namespace Name Mixin selector
      official i Leru;i:I
      intermediary field_5256 Lnet/minecraft/class_1058;field_5256:I
      named y Lnet/minecraft/client/texture/Sprite;y:I
    • uMin

      private final float uMin
      Mappings:
      Namespace Name Mixin selector
      official j Leru;j:F
      intermediary field_5270 Lnet/minecraft/class_1058;field_5270:F
      named uMin Lnet/minecraft/client/texture/Sprite;uMin:F
    • uMax

      private final float uMax
      Mappings:
      Namespace Name Mixin selector
      official k Leru;k:F
      intermediary field_5269 Lnet/minecraft/class_1058;field_5269:F
      named uMax Lnet/minecraft/client/texture/Sprite;uMax:F
    • vMin

      private final float vMin
      Mappings:
      Namespace Name Mixin selector
      official l Leru;l:F
      intermediary field_5268 Lnet/minecraft/class_1058;field_5268:F
      named vMin Lnet/minecraft/client/texture/Sprite;vMin:F
    • vMax

      private final float vMax
      Mappings:
      Namespace Name Mixin selector
      official m Leru;m:F
      intermediary field_5267 Lnet/minecraft/class_1058;field_5267:F
      named vMax Lnet/minecraft/client/texture/Sprite;vMax:F
  • Constructor Details

    • Sprite

      protected Sprite​(SpriteAtlasTexture spriteAtlasTexture, Sprite.Info info, int maxLevel, int atlasWidth, int atlasHeight, int x, int y, NativeImage nativeImage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leru;<init>(Lert;Leru$c;IIIIILdky;)V
      intermediary <init> Lnet/minecraft/class_1058;<init>(Lnet/minecraft/class_1059;Lnet/minecraft/class_1058$class_4727;IIIIILnet/minecraft/class_1011;)V
      named <init> Lnet/minecraft/client/texture/Sprite;<init>(Lnet/minecraft/client/texture/SpriteAtlasTexture;Lnet/minecraft/client/texture/Sprite$Info;IIIIILnet/minecraft/client/texture/NativeImage;)V
  • Method Details

    • getFrameCount

      private int getFrameCount()
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a()I
      intermediary method_4592 Lnet/minecraft/class_1058;method_4592()I
      named getFrameCount Lnet/minecraft/client/texture/Sprite;getFrameCount()I
    • method_33437

      @Nullable private Sprite.class_5790 method_33437​(Sprite.Info info, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a(Leru$c;III)Leru$a;
      intermediary method_33437 Lnet/minecraft/class_1058;method_33437(Lnet/minecraft/class_1058$class_4727;III)Lnet/minecraft/class_1058$class_5790;
      named method_33437 Lnet/minecraft/client/texture/Sprite;method_33437(Lnet/minecraft/client/texture/Sprite$Info;III)Lnet/minecraft/client/texture/Sprite$class_5790;
    • upload

      private void upload​(int frameX, int frameY, NativeImage[] output)
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a(II[Ldky;)V
      intermediary method_4579 Lnet/minecraft/class_1058;method_4579(II[Lnet/minecraft/class_1011;)V
      named upload Lnet/minecraft/client/texture/Sprite;upload(II[Lnet/minecraft/client/texture/NativeImage;)V
    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      official f Leru;f()I
      intermediary method_4578 Lnet/minecraft/class_1058;method_4578()I
      named getWidth Lnet/minecraft/client/texture/Sprite;getWidth()I
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official g Leru;g()I
      intermediary method_4595 Lnet/minecraft/class_1058;method_4595()I
      named getHeight Lnet/minecraft/client/texture/Sprite;getHeight()I
    • getMinU

      public float getMinU()
      Mappings:
      Namespace Name Mixin selector
      official h Leru;h()F
      intermediary method_4594 Lnet/minecraft/class_1058;method_4594()F
      named getMinU Lnet/minecraft/client/texture/Sprite;getMinU()F
    • getMaxU

      public float getMaxU()
      Mappings:
      Namespace Name Mixin selector
      official i Leru;i()F
      intermediary method_4577 Lnet/minecraft/class_1058;method_4577()F
      named getMaxU Lnet/minecraft/client/texture/Sprite;getMaxU()F
    • getFrameU

      public float getFrameU​(double frame)
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a(D)F
      intermediary method_4580 Lnet/minecraft/class_1058;method_4580(D)F
      named getFrameU Lnet/minecraft/client/texture/Sprite;getFrameU(D)F
    • getMinV

      public float getMinV()
      Mappings:
      Namespace Name Mixin selector
      official j Leru;j()F
      intermediary method_4593 Lnet/minecraft/class_1058;method_4593()F
      named getMinV Lnet/minecraft/client/texture/Sprite;getMinV()F
    • getMaxV

      public float getMaxV()
      Mappings:
      Namespace Name Mixin selector
      official k Leru;k()F
      intermediary method_4575 Lnet/minecraft/class_1058;method_4575()F
      named getMaxV Lnet/minecraft/client/texture/Sprite;getMaxV()F
    • getFrameV

      public float getFrameV​(double frame)
      Mappings:
      Namespace Name Mixin selector
      official b Leru;b(D)F
      intermediary method_4570 Lnet/minecraft/class_1058;method_4570(D)F
      named getFrameV Lnet/minecraft/client/texture/Sprite;getFrameV(D)F
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official l Leru;l()Lwb;
      intermediary method_4598 Lnet/minecraft/class_1058;method_4598()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/client/texture/Sprite;getId()Lnet/minecraft/util/Identifier;
    • getAtlas

      public SpriteAtlasTexture getAtlas()
      Mappings:
      Namespace Name Mixin selector
      official m Leru;m()Lert;
      intermediary method_24119 Lnet/minecraft/class_1058;method_24119()Lnet/minecraft/class_1059;
      named getAtlas Lnet/minecraft/client/texture/Sprite;getAtlas()Lnet/minecraft/client/texture/SpriteAtlasTexture;
    • method_33442

      public IntStream method_33442()
      Mappings:
      Namespace Name Mixin selector
      official n Leru;n()Ljava/util/stream/IntStream;
      intermediary method_33442 Lnet/minecraft/class_1058;method_33442()Ljava/util/stream/IntStream;
      named method_33442 Lnet/minecraft/client/texture/Sprite;method_33442()Ljava/util/stream/IntStream;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Mappings:
      Namespace Name Mixin selector
      official close Leru;close()V
      intermediary close Lnet/minecraft/class_1058;close()V
      named close Lnet/minecraft/client/texture/Sprite;close()V
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Leru;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1058;toString()Ljava/lang/String;
      named toString Lnet/minecraft/client/texture/Sprite;toString()Ljava/lang/String;
    • isPixelTransparent

      public boolean isPixelTransparent​(int frame, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a(III)Z
      intermediary method_4583 Lnet/minecraft/class_1058;method_4583(III)Z
      named isPixelTransparent Lnet/minecraft/client/texture/Sprite;isPixelTransparent(III)Z
    • upload

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      official o Leru;o()V
      intermediary method_4584 Lnet/minecraft/class_1058;method_4584()V
      named upload Lnet/minecraft/client/texture/Sprite;upload()V
    • getFrameDeltaFactor

      private float getFrameDeltaFactor()
      Mappings:
      Namespace Name Mixin selector
      official b Leru;b()F
      intermediary method_23841 Lnet/minecraft/class_1058;method_23841()F
      named getFrameDeltaFactor Lnet/minecraft/client/texture/Sprite;getFrameDeltaFactor()F
    • getAnimationFrameDelta

      public float getAnimationFrameDelta()
      Mappings:
      Namespace Name Mixin selector
      official p Leru;p()F
      intermediary method_23842 Lnet/minecraft/class_1058;method_23842()F
      named getAnimationFrameDelta Lnet/minecraft/client/texture/Sprite;getAnimationFrameDelta()F
    • method_33443

      @Nullable public TextureTickListener method_33443()
      Mappings:
      Namespace Name Mixin selector
      official q Leru;q()Lerw;
      intermediary method_33443 Lnet/minecraft/class_1058;method_33443()Lnet/minecraft/class_1061;
      named method_33443 Lnet/minecraft/client/texture/Sprite;method_33443()Lnet/minecraft/client/texture/TextureTickListener;
    • getTextureSpecificVertexConsumer

      public VertexConsumer getTextureSpecificVertexConsumer​(VertexConsumer vertexConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Leru;a(Ldlv;)Ldlv;
      intermediary method_24108 Lnet/minecraft/class_1058;method_24108(Lnet/minecraft/class_4588;)Lnet/minecraft/class_4588;
      named getTextureSpecificVertexConsumer Lnet/minecraft/client/texture/Sprite;getTextureSpecificVertexConsumer(Lnet/minecraft/client/render/VertexConsumer;)Lnet/minecraft/client/render/VertexConsumer;