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 exl
intermediary net/minecraft/class_1058
named net/minecraft/client/texture/Sprite
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private static class
static class
private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable Sprite.Animation
private SpriteAtlasTexture
(package private) int
private Identifier
protected NativeImage[]
private static Logger
private float
private float
private float
private float
(package private) int
private int
private int
-
Constructor Summary
ModifierConstructorDescriptionprotected
Sprite(SpriteAtlasTexture atlas, Sprite.Info info, int maxLevel, int atlasWidth, int atlasHeight, int x, int y, NativeImage nativeImage)
-
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()
getTextureSpecificVertexConsumer(VertexConsumer vertexConsumer)
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
- Mappings:
Namespace Name Mixin selector official b
Lexl;b:Lorg/apache/logging/log4j/Logger;
intermediary field_28464
Lnet/minecraft/class_1058;field_28464:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/texture/Sprite;LOGGER:Lorg/apache/logging/log4j/Logger;
-
atlas
- Mappings:
Namespace Name Mixin selector official c
Lexl;c:Lexk;
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
Lexl;d:Lww;
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
Lexl;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
Lexl;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
Lexl;a:[Ldpl;
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
Lexl;g:Lexl$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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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 nativeImage)- Mappings:
Namespace Name Mixin selector official <init>
Lexl;<init>(Lexk;Lexl$c;IIIIILdpl;)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
Lexl;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
Lexl;a(Lexl$c;III)Lexl$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
Lexl;a(II[Ldpl;)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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;l()Lww;
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
Lexl;m()Lexk;
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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;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
Lexl;q()Lexn;
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
Lexl;a(Ldqo;)Ldqo;
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;
-