Package net.minecraft.client.texture
Class SpriteContents
java.lang.Object
net.minecraft.client.texture.SpriteContents
- All Implemented Interfaces:
AutoCloseable
,TextureStitcher.Stitchable
@Environment(CLIENT)
public class SpriteContents
extends Object
implements TextureStitcher.Stitchable, AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/texture/SpriteContents
intermediary net/minecraft/class_7764
official gov
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private static class
private class
private final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable SpriteContents.Animation
(package private) final int
private final Identifier
private final NativeImage
private static final Logger
private final ResourceMetadata
(package private) NativeImage[]
(package private) final int
-
Constructor Summary
ConstructorDescriptionSpriteContents
(Identifier id, SpriteDimensions dimensions, NativeImage image, ResourceMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private @Nullable SpriteContents.Animation
createAnimation
(SpriteDimensions dimensions, int imageWidth, int imageHeight, AnimationResourceMetadata metadata) void
generateMipmaps
(int mipmapLevels) private int
int
getId()
int
getWidth()
boolean
isPixelTransparent
(int frame, int x, int y) toString()
void
upload
(int x, int y) (package private) void
upload
(int x, int y, int unpackSkipPixels, int unpackSkipRows, NativeImage[] images)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/texture/SpriteContents;LOGGER:Lorg/slf4j/Logger;
intermediary field_40535
Lnet/minecraft/class_7764;field_40535:Lorg/slf4j/Logger;
official a
Lgov;a:Lorg/slf4j/Logger;
-
id
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/client/texture/SpriteContents;id:Lnet/minecraft/util/Identifier;
intermediary field_40536
Lnet/minecraft/class_7764;field_40536:Lnet/minecraft/class_2960;
official b
Lgov;b:Lalf;
-
width
final int width- Mappings:
Namespace Name Mixin selector named width
Lnet/minecraft/client/texture/SpriteContents;width:I
intermediary field_40537
Lnet/minecraft/class_7764;field_40537:I
official c
Lgov;c:I
-
height
final int height- Mappings:
Namespace Name Mixin selector named height
Lnet/minecraft/client/texture/SpriteContents;height:I
intermediary field_40538
Lnet/minecraft/class_7764;field_40538:I
official d
Lgov;d:I
-
image
- Mappings:
Namespace Name Mixin selector named image
Lnet/minecraft/client/texture/SpriteContents;image:Lnet/minecraft/client/texture/NativeImage;
intermediary field_40539
Lnet/minecraft/class_7764;field_40539:Lnet/minecraft/class_1011;
official e
Lgov;e:Lezb;
-
mipmapLevelsImages
NativeImage[] mipmapLevelsImages- Mappings:
Namespace Name Mixin selector named mipmapLevelsImages
Lnet/minecraft/client/texture/SpriteContents;mipmapLevelsImages:[Lnet/minecraft/client/texture/NativeImage;
intermediary field_40540
Lnet/minecraft/class_7764;field_40540:[Lnet/minecraft/class_1011;
official f
Lgov;f:[Lezb;
-
animation
- Mappings:
Namespace Name Mixin selector named animation
Lnet/minecraft/client/texture/SpriteContents;animation:Lnet/minecraft/client/texture/SpriteContents$Animation;
intermediary field_40541
Lnet/minecraft/class_7764;field_40541:Lnet/minecraft/class_7764$class_5790;
official g
Lgov;g:Lgov$a;
-
metadata
- Mappings:
Namespace Name Mixin selector named metadata
Lnet/minecraft/client/texture/SpriteContents;metadata:Lnet/minecraft/resource/metadata/ResourceMetadata;
intermediary field_45631
Lnet/minecraft/class_7764;field_45631:Lnet/minecraft/class_7368;
official h
Lgov;h:Laur;
-
-
Constructor Details
-
SpriteContents
public SpriteContents(Identifier id, SpriteDimensions dimensions, NativeImage image, ResourceMetadata metadata) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/texture/SpriteContents;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/SpriteDimensions;Lnet/minecraft/client/texture/NativeImage;Lnet/minecraft/resource/metadata/ResourceMetadata;)V
intermediary <init>
Lnet/minecraft/class_7764;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7771;Lnet/minecraft/class_1011;Lnet/minecraft/class_7368;)V
official <init>
Lgov;<init>(Lalf;Lgqo;Lezb;Laur;)V
-
-
Method Details
-
generateMipmaps
public void generateMipmaps(int mipmapLevels) - Mappings:
Namespace Name Mixin selector named generateMipmaps
Lnet/minecraft/client/texture/SpriteContents;generateMipmaps(I)V
intermediary method_45808
Lnet/minecraft/class_7764;method_45808(I)V
official a
Lgov;a(I)V
-
getFrameCount
private int getFrameCount()- Mappings:
Namespace Name Mixin selector named getFrameCount
Lnet/minecraft/client/texture/SpriteContents;getFrameCount()I
intermediary method_45819
Lnet/minecraft/class_7764;method_45819()I
official g
Lgov;g()I
-
createAnimation
@Nullable private @Nullable SpriteContents.Animation createAnimation(SpriteDimensions dimensions, int imageWidth, int imageHeight, AnimationResourceMetadata metadata) - Mappings:
Namespace Name Mixin selector named createAnimation
Lnet/minecraft/client/texture/SpriteContents;createAnimation(Lnet/minecraft/client/texture/SpriteDimensions;IILnet/minecraft/client/resource/metadata/AnimationResourceMetadata;)Lnet/minecraft/client/texture/SpriteContents$Animation;
intermediary method_45812
Lnet/minecraft/class_7764;method_45812(Lnet/minecraft/class_7771;IILnet/minecraft/class_1079;)Lnet/minecraft/class_7764$class_5790;
official a
Lgov;a(Lgqo;IILgqm;)Lgov$a;
-
upload
- Mappings:
Namespace Name Mixin selector named upload
Lnet/minecraft/client/texture/SpriteContents;upload(IIII[Lnet/minecraft/client/texture/NativeImage;)V
intermediary method_45811
Lnet/minecraft/class_7764;method_45811(IIII[Lnet/minecraft/class_1011;)V
official a
Lgov;a(IIII[Lezb;)V
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceTextureStitcher.Stitchable
- Mappings:
Namespace Name Mixin selector named getWidth
Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getWidth()I
intermediary method_45807
Lnet/minecraft/class_1055$class_7769;method_45807()I
official a
Lgoy$a;a()I
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceTextureStitcher.Stitchable
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getHeight()I
intermediary method_45815
Lnet/minecraft/class_1055$class_7769;method_45815()I
official b
Lgoy$a;b()I
-
getId
- Specified by:
getId
in interfaceTextureStitcher.Stitchable
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getId()Lnet/minecraft/util/Identifier;
intermediary method_45816
Lnet/minecraft/class_1055$class_7769;method_45816()Lnet/minecraft/class_2960;
official c
Lgoy$a;c()Lalf;
-
getDistinctFrameCount
- Mappings:
Namespace Name Mixin selector named getDistinctFrameCount
Lnet/minecraft/client/texture/SpriteContents;getDistinctFrameCount()Ljava/util/stream/IntStream;
intermediary method_45817
Lnet/minecraft/class_7764;method_45817()Ljava/util/stream/IntStream;
official d
Lgov;d()Ljava/util/stream/IntStream;
-
createAnimator
- Mappings:
Namespace Name Mixin selector named createAnimator
Lnet/minecraft/client/texture/SpriteContents;createAnimator()Lnet/minecraft/client/texture/Animator;
intermediary method_45818
Lnet/minecraft/class_7764;method_45818()Lnet/minecraft/class_7768;
official e
Lgov;e()Lgox;
-
getMetadata
- Mappings:
Namespace Name Mixin selector named getMetadata
Lnet/minecraft/client/texture/SpriteContents;getMetadata()Lnet/minecraft/resource/metadata/ResourceMetadata;
intermediary method_52848
Lnet/minecraft/class_7764;method_52848()Lnet/minecraft/class_7368;
official f
Lgov;f()Laur;
-
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 named isPixelTransparent
Lnet/minecraft/client/texture/SpriteContents;isPixelTransparent(III)Z
intermediary method_45810
Lnet/minecraft/class_7764;method_45810(III)Z
official a
Lgov;a(III)Z
-
upload
public void upload(int x, int y) - Mappings:
Namespace Name Mixin selector named upload
Lnet/minecraft/client/texture/SpriteContents;upload(II)V
intermediary method_45809
Lnet/minecraft/class_7764;method_45809(II)V
official a
Lgov;a(II)V
-