Class Sprite

java.lang.Object
net.minecraft.client.texture.Sprite

@Environment(CLIENT) public class Sprite extends Object
Mappings:
Namespace Name
named net/minecraft/client/texture/Sprite
intermediary net/minecraft/class_1058
official hbk
  • Field Details

    • atlasId

      private final Identifier atlasId
      Mappings:
      Namespace Name Mixin selector
      named atlasId Lnet/minecraft/client/texture/Sprite;atlasId:Lnet/minecraft/util/Identifier;
      intermediary field_40552 Lnet/minecraft/class_1058;field_40552:Lnet/minecraft/class_2960;
      official a Lhbk;a:Lalz;
    • contents

      private final SpriteContents contents
      Mappings:
      Namespace Name Mixin selector
      named contents Lnet/minecraft/client/texture/Sprite;contents:Lnet/minecraft/client/texture/SpriteContents;
      intermediary field_40553 Lnet/minecraft/class_1058;field_40553:Lnet/minecraft/class_7764;
      official b Lhbk;b:Lhbe;
    • x

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

      final int y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/client/texture/Sprite;y:I
      intermediary field_5256 Lnet/minecraft/class_1058;field_5256:I
      official d Lhbk;d:I
    • minU

      private final float minU
      Mappings:
      Namespace Name Mixin selector
      named minU Lnet/minecraft/client/texture/Sprite;minU:F
      intermediary field_5270 Lnet/minecraft/class_1058;field_5270:F
      official e Lhbk;e:F
    • maxU

      private final float maxU
      Mappings:
      Namespace Name Mixin selector
      named maxU Lnet/minecraft/client/texture/Sprite;maxU:F
      intermediary field_5269 Lnet/minecraft/class_1058;field_5269:F
      official f Lhbk;f:F
    • minV

      private final float minV
      Mappings:
      Namespace Name Mixin selector
      named minV Lnet/minecraft/client/texture/Sprite;minV:F
      intermediary field_5268 Lnet/minecraft/class_1058;field_5268:F
      official g Lhbk;g:F
    • maxV

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

    • Sprite

      protected Sprite(Identifier atlasId, SpriteContents contents, int atlasWidth, int atlasHeight, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/Sprite;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/SpriteContents;IIII)V
      intermediary <init> Lnet/minecraft/class_1058;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7764;IIII)V
      official <init> Lhbk;<init>(Lalz;Lhbe;IIII)V
  • Method Details

    • getX

      public int getX()
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/client/texture/Sprite;getX()I
      intermediary method_35806 Lnet/minecraft/class_1058;method_35806()I
      official a Lhbk;a()I
    • getY

      public int getY()
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/client/texture/Sprite;getY()I
      intermediary method_35807 Lnet/minecraft/class_1058;method_35807()I
      official b Lhbk;b()I
    • getMinU

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

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

      public SpriteContents getContents()
      Mappings:
      Namespace Name Mixin selector
      named getContents Lnet/minecraft/client/texture/Sprite;getContents()Lnet/minecraft/client/texture/SpriteContents;
      intermediary method_45851 Lnet/minecraft/class_1058;method_45851()Lnet/minecraft/class_7764;
      official e Lhbk;e()Lhbe;
    • createAnimation

      @Nullable public @Nullable Sprite.TickableAnimation createAnimation()
      Mappings:
      Namespace Name Mixin selector
      named createAnimation Lnet/minecraft/client/texture/Sprite;createAnimation()Lnet/minecraft/client/texture/Sprite$TickableAnimation;
      intermediary method_33437 Lnet/minecraft/class_1058;method_33437()Lnet/minecraft/class_1058$class_7770;
      official f Lhbk;f()Lhbk$a;
    • getFrameU

      public float getFrameU(float frame)
      Mappings:
      Namespace Name Mixin selector
      named getFrameU Lnet/minecraft/client/texture/Sprite;getFrameU(F)F
      intermediary method_4580 Lnet/minecraft/class_1058;method_4580(F)F
      official a Lhbk;a(F)F
    • getFrameFromU

      public float getFrameFromU(float u)
      Mappings:
      Namespace Name Mixin selector
      named getFrameFromU Lnet/minecraft/client/texture/Sprite;getFrameFromU(F)F
      intermediary method_35804 Lnet/minecraft/class_1058;method_35804(F)F
      official b Lhbk;b(F)F
    • getMinV

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

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

      public float getFrameV(float frame)
      Mappings:
      Namespace Name Mixin selector
      named getFrameV Lnet/minecraft/client/texture/Sprite;getFrameV(F)F
      intermediary method_4570 Lnet/minecraft/class_1058;method_4570(F)F
      official c Lhbk;c(F)F
    • getFrameFromV

      public float getFrameFromV(float v)
      Mappings:
      Namespace Name Mixin selector
      named getFrameFromV Lnet/minecraft/client/texture/Sprite;getFrameFromV(F)F
      intermediary method_35805 Lnet/minecraft/class_1058;method_35805(F)F
      official d Lhbk;d(F)F
    • getAtlasId

      public Identifier getAtlasId()
      Mappings:
      Namespace Name Mixin selector
      named getAtlasId Lnet/minecraft/client/texture/Sprite;getAtlasId()Lnet/minecraft/util/Identifier;
      intermediary method_45852 Lnet/minecraft/class_1058;method_45852()Lnet/minecraft/class_2960;
      official i Lhbk;i()Lalz;
    • toString

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

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

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

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

      public VertexConsumer getTextureSpecificVertexConsumer(VertexConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      named getTextureSpecificVertexConsumer Lnet/minecraft/client/texture/Sprite;getTextureSpecificVertexConsumer(Lnet/minecraft/client/render/VertexConsumer;)Lnet/minecraft/client/render/VertexConsumer;
      intermediary method_24108 Lnet/minecraft/class_1058;method_24108(Lnet/minecraft/class_4588;)Lnet/minecraft/class_4588;
      official a Lhbk;a(Lfgv;)Lfgv;