Class Sprite

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

@Environment(CLIENT) public class Sprite extends Object
Mappings:
Namespace Name
official fol
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 Lfol;a:Lacf;
      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 Lfol;b:Lfof;
      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 Lfol;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 Lfol;d: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 e Lfol;e: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 f Lfol;f: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 g Lfol;g: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 h Lfol;h: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(Identifier atlasId, SpriteContents contents, int maxLevel, int atlasWidth, int atlasHeight, int x)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfol;<init>(Lacf;Lfof;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 Lfol;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 Lfol;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 Lfol;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 Lfol;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 Lfol;e()Lfof;
      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 Lfol;f()Lfol$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(double frame)
      Mappings:
      Namespace Name Mixin selector
      official a Lfol;a(D)F
      intermediary method_4580 Lnet/minecraft/class_1058;method_4580(D)F
      named getFrameU Lnet/minecraft/client/texture/Sprite;getFrameU(D)F
    • method_35804

      public float method_35804(float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lfol;a(F)F
      intermediary method_35804 Lnet/minecraft/class_1058;method_35804(F)F
      named method_35804 Lnet/minecraft/client/texture/Sprite;method_35804(F)F
    • getMinV

      public float getMinV()
      Mappings:
      Namespace Name Mixin selector
      official g Lfol;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 Lfol;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(double frame)
      Mappings:
      Namespace Name Mixin selector
      official b Lfol;b(D)F
      intermediary method_4570 Lnet/minecraft/class_1058;method_4570(D)F
      named getFrameV Lnet/minecraft/client/texture/Sprite;getFrameV(D)F
    • method_35805

      public float method_35805(float float2)
      Mappings:
      Namespace Name Mixin selector
      official b Lfol;b(F)F
      intermediary method_35805 Lnet/minecraft/class_1058;method_35805(F)F
      named method_35805 Lnet/minecraft/client/texture/Sprite;method_35805(F)F
    • getAtlasId

      public Identifier getAtlasId()
      Mappings:
      Namespace Name Mixin selector
      official i Lfol;i()Lacf;
      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 Lfol;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 Lfol;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 Lfol;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 Lfol;a(Leeh;)Leeh;
      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;