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 official fsw
intermediary net/minecraft/class_7764
named net/minecraft/client/texture/SpriteContents
-
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
(package private) NativeImage[]
(package private) final int
-
Constructor Summary
ConstructorDescriptionSpriteContents
(Identifier id, SpriteDimensions dimensions, NativeImage image, AnimationResourceMetadata 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 official a
Lfsw;a:Lorg/slf4j/Logger;
intermediary field_40535
Lnet/minecraft/class_7764;field_40535:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/texture/SpriteContents;LOGGER:Lorg/slf4j/Logger;
-
id
- Mappings:
Namespace Name Mixin selector official b
Lfsw;b:Ladd;
intermediary field_40536
Lnet/minecraft/class_7764;field_40536:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/texture/SpriteContents;id:Lnet/minecraft/util/Identifier;
-
width
final int width- Mappings:
Namespace Name Mixin selector official c
Lfsw;c:I
intermediary field_40537
Lnet/minecraft/class_7764;field_40537:I
named width
Lnet/minecraft/client/texture/SpriteContents;width:I
-
height
final int height- Mappings:
Namespace Name Mixin selector official d
Lfsw;d:I
intermediary field_40538
Lnet/minecraft/class_7764;field_40538:I
named height
Lnet/minecraft/client/texture/SpriteContents;height:I
-
image
- Mappings:
Namespace Name Mixin selector official e
Lfsw;e:Legf;
intermediary field_40539
Lnet/minecraft/class_7764;field_40539:Lnet/minecraft/class_1011;
named image
Lnet/minecraft/client/texture/SpriteContents;image:Lnet/minecraft/client/texture/NativeImage;
-
mipmapLevelsImages
NativeImage[] mipmapLevelsImages- Mappings:
Namespace Name Mixin selector official f
Lfsw;f:[Legf;
intermediary field_40540
Lnet/minecraft/class_7764;field_40540:[Lnet/minecraft/class_1011;
named mipmapLevelsImages
Lnet/minecraft/client/texture/SpriteContents;mipmapLevelsImages:[Lnet/minecraft/client/texture/NativeImage;
-
animation
- Mappings:
Namespace Name Mixin selector official g
Lfsw;g:Lfsw$a;
intermediary field_40541
Lnet/minecraft/class_7764;field_40541:Lnet/minecraft/class_7764$class_5790;
named animation
Lnet/minecraft/client/texture/SpriteContents;animation:Lnet/minecraft/client/texture/SpriteContents$Animation;
-
-
Constructor Details
-
SpriteContents
public SpriteContents(Identifier id, SpriteDimensions dimensions, NativeImage image, AnimationResourceMetadata metadata) - Mappings:
Namespace Name Mixin selector official <init>
Lfsw;<init>(Ladd;Lfun;Legf;Lful;)V
intermediary <init>
Lnet/minecraft/class_7764;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7771;Lnet/minecraft/class_1011;Lnet/minecraft/class_1079;)V
named <init>
Lnet/minecraft/client/texture/SpriteContents;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/SpriteDimensions;Lnet/minecraft/client/texture/NativeImage;Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;)V
-
-
Method Details
-
generateMipmaps
public void generateMipmaps(int mipmapLevels) - Mappings:
Namespace Name Mixin selector official a
Lfsw;a(I)V
intermediary method_45808
Lnet/minecraft/class_7764;method_45808(I)V
named generateMipmaps
Lnet/minecraft/client/texture/SpriteContents;generateMipmaps(I)V
-
getFrameCount
private int getFrameCount()- Mappings:
Namespace Name Mixin selector official f
Lfsw;f()I
intermediary method_45819
Lnet/minecraft/class_7764;method_45819()I
named getFrameCount
Lnet/minecraft/client/texture/SpriteContents;getFrameCount()I
-
createAnimation
@Nullable private @Nullable SpriteContents.Animation createAnimation(SpriteDimensions dimensions, int imageWidth, int imageHeight, AnimationResourceMetadata metadata) - Mappings:
Namespace Name Mixin selector official a
Lfsw;a(Lfun;IILful;)Lfsw$a;
intermediary method_45812
Lnet/minecraft/class_7764;method_45812(Lnet/minecraft/class_7771;IILnet/minecraft/class_1079;)Lnet/minecraft/class_7764$class_5790;
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;
-
upload
- Mappings:
Namespace Name Mixin selector official a
Lfsw;a(IIII[Legf;)V
intermediary method_45811
Lnet/minecraft/class_7764;method_45811(IIII[Lnet/minecraft/class_1011;)V
named upload
Lnet/minecraft/client/texture/SpriteContents;upload(IIII[Lnet/minecraft/client/texture/NativeImage;)V
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceTextureStitcher.Stitchable
- Mappings:
Namespace Name Mixin selector official a
Lfsz$a;a()I
intermediary method_45807
Lnet/minecraft/class_1055$class_7769;method_45807()I
named getWidth
Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getWidth()I
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceTextureStitcher.Stitchable
- Mappings:
Namespace Name Mixin selector official b
Lfsz$a;b()I
intermediary method_45815
Lnet/minecraft/class_1055$class_7769;method_45815()I
named getHeight
Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getHeight()I
-
getId
- Specified by:
getId
in interfaceTextureStitcher.Stitchable
- Mappings:
Namespace Name Mixin selector official c
Lfsz$a;c()Ladd;
intermediary method_45816
Lnet/minecraft/class_1055$class_7769;method_45816()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getId()Lnet/minecraft/util/Identifier;
-
getDistinctFrameCount
- Mappings:
Namespace Name Mixin selector official d
Lfsw;d()Ljava/util/stream/IntStream;
intermediary method_45817
Lnet/minecraft/class_7764;method_45817()Ljava/util/stream/IntStream;
named getDistinctFrameCount
Lnet/minecraft/client/texture/SpriteContents;getDistinctFrameCount()Ljava/util/stream/IntStream;
-
createAnimator
- Mappings:
Namespace Name Mixin selector official e
Lfsw;e()Lfsy;
intermediary method_45818
Lnet/minecraft/class_7764;method_45818()Lnet/minecraft/class_7768;
named createAnimator
Lnet/minecraft/client/texture/SpriteContents;createAnimator()Lnet/minecraft/client/texture/Animator;
-
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
Lfsw;a(III)Z
intermediary method_45810
Lnet/minecraft/class_7764;method_45810(III)Z
named isPixelTransparent
Lnet/minecraft/client/texture/SpriteContents;isPixelTransparent(III)Z
-
upload
public void upload(int x, int y) - Mappings:
Namespace Name Mixin selector official a
Lfsw;a(II)V
intermediary method_45809
Lnet/minecraft/class_7764;method_45809(II)V
named upload
Lnet/minecraft/client/texture/SpriteContents;upload(II)V
-