Class Sprite.Animation

java.lang.Object
net.minecraft.client.texture.Sprite.Animation
All Implemented Interfaces:
AutoCloseable, TextureTickListener
Enclosing class:
Sprite

@Environment(CLIENT) private class Sprite.Animation extends Object implements TextureTickListener, AutoCloseable
Mappings:
Namespace Name
official fig$a
intermediary net/minecraft/class_1058$class_5790
named net/minecraft/client/texture/Sprite$Animation
  • Field Details

    • frameIndex

      int frameIndex
      Mappings:
      Namespace Name Mixin selector
      official b Lfig$a;b:I
      intermediary field_28470 Lnet/minecraft/class_1058$class_5790;field_28470:I
      named frameIndex Lnet/minecraft/client/texture/Sprite$Animation;frameIndex:I
    • frameTicks

      int frameTicks
      Mappings:
      Namespace Name Mixin selector
      official c Lfig$a;c:I
      intermediary field_28471 Lnet/minecraft/class_1058$class_5790;field_28471:I
      named frameTicks Lnet/minecraft/client/texture/Sprite$Animation;frameTicks:I
    • frames

      final List<Sprite.AnimationFrame> frames
      Mappings:
      Namespace Name Mixin selector
      official d Lfig$a;d:Ljava/util/List;
      intermediary field_28472 Lnet/minecraft/class_1058$class_5790;field_28472:Ljava/util/List;
      named frames Lnet/minecraft/client/texture/Sprite$Animation;frames:Ljava/util/List;
    • frameCount

      private final int frameCount
      Mappings:
      Namespace Name Mixin selector
      official e Lfig$a;e:I
      intermediary field_28473 Lnet/minecraft/class_1058$class_5790;field_28473:I
      named frameCount Lnet/minecraft/client/texture/Sprite$Animation;frameCount:I
    • interpolation

      @Nullable private final @Nullable Sprite.Interpolation interpolation
      Mappings:
      Namespace Name Mixin selector
      official f Lfig$a;f:Lfig$d;
      intermediary field_28474 Lnet/minecraft/class_1058$class_5790;field_28474:Lnet/minecraft/class_1058$class_4728;
      named interpolation Lnet/minecraft/client/texture/Sprite$Animation;interpolation:Lnet/minecraft/client/texture/Sprite$Interpolation;
  • Constructor Details

    • Animation

      Animation(List<Sprite.AnimationFrame> frames, int frameCount, @Nullable @Nullable Sprite.Interpolation interpolation)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfig$a;<init>(Lfig;Ljava/util/List;ILfig$d;)V
      intermediary <init> Lnet/minecraft/class_1058$class_5790;<init>(Lnet/minecraft/class_1058;Ljava/util/List;ILnet/minecraft/class_1058$class_4728;)V
      named <init> Lnet/minecraft/client/texture/Sprite$Animation;<init>(Lnet/minecraft/client/texture/Sprite;Ljava/util/List;ILnet/minecraft/client/texture/Sprite$Interpolation;)V
  • Method Details

    • getFrameX

      int getFrameX(int frame)
      Mappings:
      Namespace Name Mixin selector
      official a Lfig$a;a(I)I
      intermediary method_33446 Lnet/minecraft/class_1058$class_5790;method_33446(I)I
      named getFrameX Lnet/minecraft/client/texture/Sprite$Animation;getFrameX(I)I
    • getFrameY

      int getFrameY(int frame)
      Mappings:
      Namespace Name Mixin selector
      official b Lfig$a;b(I)I
      intermediary method_33451 Lnet/minecraft/class_1058$class_5790;method_33451(I)I
      named getFrameY Lnet/minecraft/client/texture/Sprite$Animation;getFrameY(I)I
    • upload

      private void upload(int frameIndex)
      Mappings:
      Namespace Name Mixin selector
      official c Lfig$a;c(I)V
      intermediary method_33455 Lnet/minecraft/class_1058$class_5790;method_33455(I)V
      named upload Lnet/minecraft/client/texture/Sprite$Animation;upload(I)V
    • close

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

      public void tick()
      Specified by:
      tick in interface TextureTickListener
      Mappings:
      Namespace Name Mixin selector
      official e Lfii;e()V
      intermediary method_4622 Lnet/minecraft/class_1061;method_4622()V
      named tick Lnet/minecraft/client/texture/TextureTickListener;tick()V
    • upload

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      official a Lfig$a;a()V
      intermediary method_33445 Lnet/minecraft/class_1058$class_5790;method_33445()V
      named upload Lnet/minecraft/client/texture/Sprite$Animation;upload()V
    • getDistinctFrameCount

      public IntStream getDistinctFrameCount()
      Mappings:
      Namespace Name Mixin selector
      official b Lfig$a;b()Ljava/util/stream/IntStream;
      intermediary method_33450 Lnet/minecraft/class_1058$class_5790;method_33450()Ljava/util/stream/IntStream;
      named getDistinctFrameCount Lnet/minecraft/client/texture/Sprite$Animation;getDistinctFrameCount()Ljava/util/stream/IntStream;