Package net.minecraft.client.texture
Class Sprite
java.lang.Object
net.minecraft.client.texture.Sprite
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
MissingSprite
- Mappings:
Namespace Name official fke
intermediary net/minecraft/class_1058
named net/minecraft/client/texture/Sprite
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private static class
static final class
private final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable Sprite.Animation
private final SpriteAtlasTexture
(package private) final int
private final Identifier
protected final NativeImage[]
private static final org.slf4j.Logger
private final float
private final float
private final float
private final float
(package private) final int
private final int
private final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
Sprite
(SpriteAtlasTexture atlas, Sprite.Info info, int maxLevel, int atlasWidth, int atlasHeight, int x, int y, NativeImage image) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private @Nullable Sprite.Animation
createAnimation
(Sprite.Info info, int nativeImageWidth, int nativeImageHeight, int maxLevel) float
getAtlas()
private int
private float
float
getFrameU
(double frame) float
getFrameV
(double frame) int
getId()
float
getMaxU()
float
getMaxV()
float
getMinU()
float
getMinV()
int
getWidth()
int
getX()
int
getY()
boolean
isPixelTransparent
(int frame, int x, int y) float
method_35804
(float float2) float
method_35805
(float float2) toString()
void
upload()
(package private) void
upload
(int frameX, int frameY, NativeImage[] output)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official b
Lfke;b:Lorg/slf4j/Logger;
intermediary field_28464
Lnet/minecraft/class_1058;field_28464:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/texture/Sprite;LOGGER:Lorg/slf4j/Logger;
-
atlas
- Mappings:
Namespace Name Mixin selector official c
Lfke;c:Lfkd;
intermediary field_21750
Lnet/minecraft/class_1058;field_21750:Lnet/minecraft/class_1059;
named atlas
Lnet/minecraft/client/texture/Sprite;atlas:Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
id
- Mappings:
Namespace Name Mixin selector official d
Lfke;d:Labb;
intermediary field_28465
Lnet/minecraft/class_1058;field_28465:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/texture/Sprite;id:Lnet/minecraft/util/Identifier;
-
width
final int width- Mappings:
Namespace Name Mixin selector official e
Lfke;e:I
intermediary field_28466
Lnet/minecraft/class_1058;field_28466:I
named width
Lnet/minecraft/client/texture/Sprite;width:I
-
height
final int height- Mappings:
Namespace Name Mixin selector official f
Lfke;f:I
intermediary field_28467
Lnet/minecraft/class_1058;field_28467:I
named height
Lnet/minecraft/client/texture/Sprite;height:I
-
images
- Mappings:
Namespace Name Mixin selector official a
Lfke;a:[Ldzq;
intermediary field_5262
Lnet/minecraft/class_1058;field_5262:[Lnet/minecraft/class_1011;
named images
Lnet/minecraft/client/texture/Sprite;images:[Lnet/minecraft/client/texture/NativeImage;
-
animation
- Mappings:
Namespace Name Mixin selector official g
Lfke;g:Lfke$a;
intermediary field_28468
Lnet/minecraft/class_1058;field_28468:Lnet/minecraft/class_1058$class_5790;
named animation
Lnet/minecraft/client/texture/Sprite;animation:Lnet/minecraft/client/texture/Sprite$Animation;
-
x
private final int x- Mappings:
Namespace Name Mixin selector official h
Lfke;h:I
intermediary field_5258
Lnet/minecraft/class_1058;field_5258:I
named x
Lnet/minecraft/client/texture/Sprite;x:I
-
y
private final int y- Mappings:
Namespace Name Mixin selector official i
Lfke;i: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 j
Lfke;j: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 k
Lfke;k: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 l
Lfke;l: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 m
Lfke;m: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(SpriteAtlasTexture atlas, Sprite.Info info, int maxLevel, int atlasWidth, int atlasHeight, int x, int y, NativeImage image) - Mappings:
Namespace Name Mixin selector official <init>
Lfke;<init>(Lfkd;Lfke$c;IIIIILdzq;)V
intermediary <init>
Lnet/minecraft/class_1058;<init>(Lnet/minecraft/class_1059;Lnet/minecraft/class_1058$class_4727;IIIIILnet/minecraft/class_1011;)V
named <init>
Lnet/minecraft/client/texture/Sprite;<init>(Lnet/minecraft/client/texture/SpriteAtlasTexture;Lnet/minecraft/client/texture/Sprite$Info;IIIIILnet/minecraft/client/texture/NativeImage;)V
-
-
Method Details
-
getFrameCount
private int getFrameCount()- Mappings:
Namespace Name Mixin selector official a
Lfke;a()I
intermediary method_4592
Lnet/minecraft/class_1058;method_4592()I
named getFrameCount
Lnet/minecraft/client/texture/Sprite;getFrameCount()I
-
createAnimation
@Nullable private @Nullable Sprite.Animation createAnimation(Sprite.Info info, int nativeImageWidth, int nativeImageHeight, int maxLevel) - Mappings:
Namespace Name Mixin selector official a
Lfke;a(Lfke$c;III)Lfke$a;
intermediary method_33437
Lnet/minecraft/class_1058;method_33437(Lnet/minecraft/class_1058$class_4727;III)Lnet/minecraft/class_1058$class_5790;
named createAnimation
Lnet/minecraft/client/texture/Sprite;createAnimation(Lnet/minecraft/client/texture/Sprite$Info;III)Lnet/minecraft/client/texture/Sprite$Animation;
-
upload
- Mappings:
Namespace Name Mixin selector official a
Lfke;a(II[Ldzq;)V
intermediary method_4579
Lnet/minecraft/class_1058;method_4579(II[Lnet/minecraft/class_1011;)V
named upload
Lnet/minecraft/client/texture/Sprite;upload(II[Lnet/minecraft/client/texture/NativeImage;)V
-
getX
public int getX()- Mappings:
Namespace Name Mixin selector official d
Lfke;d()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 e
Lfke;e()I
intermediary method_35807
Lnet/minecraft/class_1058;method_35807()I
named getY
Lnet/minecraft/client/texture/Sprite;getY()I
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector official f
Lfke;f()I
intermediary method_4578
Lnet/minecraft/class_1058;method_4578()I
named getWidth
Lnet/minecraft/client/texture/Sprite;getWidth()I
-
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector official g
Lfke;g()I
intermediary method_4595
Lnet/minecraft/class_1058;method_4595()I
named getHeight
Lnet/minecraft/client/texture/Sprite;getHeight()I
-
getMinU
public float getMinU()- Mappings:
Namespace Name Mixin selector official h
Lfke;h()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 i
Lfke;i()F
intermediary method_4577
Lnet/minecraft/class_1058;method_4577()F
named getMaxU
Lnet/minecraft/client/texture/Sprite;getMaxU()F
-
getFrameU
public float getFrameU(double frame) - Mappings:
Namespace Name Mixin selector official a
Lfke;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
Lfke;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 j
Lfke;j()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 k
Lfke;k()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
Lfke;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
Lfke;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
-
getId
- Mappings:
Namespace Name Mixin selector official l
Lfke;l()Labb;
intermediary method_4598
Lnet/minecraft/class_1058;method_4598()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/client/texture/Sprite;getId()Lnet/minecraft/util/Identifier;
-
getAtlas
- Mappings:
Namespace Name Mixin selector official m
Lfke;m()Lfkd;
intermediary method_24119
Lnet/minecraft/class_1058;method_24119()Lnet/minecraft/class_1059;
named getAtlas
Lnet/minecraft/client/texture/Sprite;getAtlas()Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
getDistinctFrameCount
- Mappings:
Namespace Name Mixin selector official n
Lfke;n()Ljava/util/stream/IntStream;
intermediary method_33442
Lnet/minecraft/class_1058;method_33442()Ljava/util/stream/IntStream;
named getDistinctFrameCount
Lnet/minecraft/client/texture/Sprite;getDistinctFrameCount()Ljava/util/stream/IntStream;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-
isPixelTransparent
public boolean isPixelTransparent(int frame, int x, int y) - Mappings:
Namespace Name Mixin selector official a
Lfke;a(III)Z
intermediary method_4583
Lnet/minecraft/class_1058;method_4583(III)Z
named isPixelTransparent
Lnet/minecraft/client/texture/Sprite;isPixelTransparent(III)Z
-
upload
public void upload()- Mappings:
Namespace Name Mixin selector official o
Lfke;o()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 b
Lfke;b()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 p
Lfke;p()F
intermediary method_23842
Lnet/minecraft/class_1058;method_23842()F
named getAnimationFrameDelta
Lnet/minecraft/client/texture/Sprite;getAnimationFrameDelta()F
-
getAnimation
- Mappings:
Namespace Name Mixin selector official q
Lfke;q()Lfkg;
intermediary method_33443
Lnet/minecraft/class_1058;method_33443()Lnet/minecraft/class_1061;
named getAnimation
Lnet/minecraft/client/texture/Sprite;getAnimation()Lnet/minecraft/client/texture/TextureTickListener;
-
getTextureSpecificVertexConsumer
- Mappings:
Namespace Name Mixin selector official a
Lfke;a(Leau;)Leau;
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;
-