Class Sprite

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

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

    • atlasId

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

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

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

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

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

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

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

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

    • Sprite

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

    • getX

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

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

      public float getMinU()
      Mappings:
      Namespace Name Mixin selector
      official c Lfze;c()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 d Lfze;d()F
      intermediary method_4577 Lnet/minecraft/class_1058;method_4577()F
      named getMaxU Lnet/minecraft/client/texture/Sprite;getMaxU()F
    • getContents

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

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

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

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

      public float getMinV()
      Mappings:
      Namespace Name Mixin selector
      official g Lfze;g()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 h Lfze;h()F
      intermediary method_4575 Lnet/minecraft/class_1058;method_4575()F
      named getMaxV Lnet/minecraft/client/texture/Sprite;getMaxV()F
    • getFrameV

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

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

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

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

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      official j Lfze;j()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 l Lfze;l()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 k Lfze;k()F
      intermediary method_23842 Lnet/minecraft/class_1058;method_23842()F
      named getAnimationFrameDelta Lnet/minecraft/client/texture/Sprite;getAnimationFrameDelta()F
    • getTextureSpecificVertexConsumer

      public VertexConsumer getTextureSpecificVertexConsumer(VertexConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lfze;a(Lelt;)Lelt;
      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;