Package net.minecraft.client.texture
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 fay$a
intermediary net/minecraft/class_1058$class_5790
named net/minecraft/client/texture/Sprite$Animation
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
(package private) int
(package private) final List<Sprite.AnimationFrame>
(package private) int
private final @Nullable Sprite.Interpolation
-
Constructor Summary
ConstructorDescriptionAnimation
(List<Sprite.AnimationFrame> frames, int frameCount, @Nullable Sprite.Interpolation interpolation) -
Method Summary
-
Field Details
-
frameIndex
int frameIndex- Mappings:
Namespace Name Mixin selector official b
Lfay$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
Lfay$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
- Mappings:
Namespace Name Mixin selector official d
Lfay$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
Lfay$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
- Mappings:
Namespace Name Mixin selector official f
Lfay$a;f:Lfay$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>
Lfay$a;<init>(Lfay;Ljava/util/List;ILfay$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
Lfay$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
Lfay$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
Lfay$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 interfaceAutoCloseable
-
tick
public void tick()- Specified by:
tick
in interfaceTextureTickListener
- Mappings:
Namespace Name Mixin selector official e
Lfba;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
Lfay$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
- Mappings:
Namespace Name Mixin selector official b
Lfay$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;
-