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 ezr
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 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
- Mappings:
Namespace Name Mixin selector official b
Lezr;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
Lezr;c:Lezq;
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
Lezr;d:Lyh;
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
Lezr;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
Lezr;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
Lezr;a:[Ldrl;
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
Lezr;g:Lezr$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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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>
Lezr;<init>(Lezq;Lezr$c;IIIIILdrl;)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
Lezr;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
Lezr;a(Lezr$c;III)Lezr$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
Lezr;a(II[Ldrl;)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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;l()Lyh;
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
Lezr;m()Lezq;
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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;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
Lezr;q()Lezt;
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
Lezr;a(Ldsn;)Ldsn;
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;
-