Package net.minecraft.client.texture
Class SpriteAtlasTexture
java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.SpriteAtlasTexture
- All Implemented Interfaces:
AutoCloseable
,DynamicTexture
,TextureTickListener
@Environment(CLIENT)
public class SpriteAtlasTexture
extends AbstractTexture
implements DynamicTexture, TextureTickListener
- Mappings:
Namespace Name official fzd
intermediary net/minecraft/class_1059
named net/minecraft/client/texture/SpriteAtlasTexture
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<Sprite.TickableAnimation>
static final Identifier
Deprecated.private int
private final Identifier
private static final Logger
private final int
private int
private @Nullable Sprite
static final Identifier
Deprecated.private Map<Identifier,
Sprite> private List<SpriteContents>
private int
Fields inherited from class net.minecraft.client.texture.AbstractTexture
bilinear, DEFAULT_ID, glId, mipmap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
private static void
dumpAtlasInfos
(Path path, String id, Map<Identifier, Sprite> sprites) (package private) int
getId()
int
getSprite
(Identifier id) (package private) int
getWidth()
void
load
(ResourceManager manager) void
save
(Identifier id, Path path) void
tick()
void
void
upload
(SpriteLoader.StitchResult stitchResult) Methods inherited from class net.minecraft.client.texture.AbstractTexture
bindTexture, clearGlId, close, getGlId, registerTexture, setFilter
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official g
Lfzd;g:Lorg/slf4j/Logger;
intermediary field_5278
Lnet/minecraft/class_1059;field_5278:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/texture/SpriteAtlasTexture;LOGGER:Lorg/slf4j/Logger;
-
BLOCK_ATLAS_TEXTURE
Deprecated.- Mappings:
Namespace Name Mixin selector official e
Lfzd;e:Laew;
intermediary field_5275
Lnet/minecraft/class_1059;field_5275:Lnet/minecraft/class_2960;
named BLOCK_ATLAS_TEXTURE
Lnet/minecraft/client/texture/SpriteAtlasTexture;BLOCK_ATLAS_TEXTURE:Lnet/minecraft/util/Identifier;
-
PARTICLE_ATLAS_TEXTURE
Deprecated.- Mappings:
Namespace Name Mixin selector official f
Lfzd;f:Laew;
intermediary field_17898
Lnet/minecraft/class_1059;field_17898:Lnet/minecraft/class_2960;
named PARTICLE_ATLAS_TEXTURE
Lnet/minecraft/client/texture/SpriteAtlasTexture;PARTICLE_ATLAS_TEXTURE:Lnet/minecraft/util/Identifier;
-
spritesToLoad
- Mappings:
Namespace Name Mixin selector official h
Lfzd;h:Ljava/util/List;
intermediary field_5277
Lnet/minecraft/class_1059;field_5277:Ljava/util/List;
named spritesToLoad
Lnet/minecraft/client/texture/SpriteAtlasTexture;spritesToLoad:Ljava/util/List;
-
animatedSprites
- Mappings:
Namespace Name Mixin selector official i
Lfzd;i:Ljava/util/List;
intermediary field_5276
Lnet/minecraft/class_1059;field_5276:Ljava/util/List;
named animatedSprites
Lnet/minecraft/client/texture/SpriteAtlasTexture;animatedSprites:Ljava/util/List;
-
sprites
- Mappings:
Namespace Name Mixin selector official j
Lfzd;j:Ljava/util/Map;
intermediary field_5280
Lnet/minecraft/class_1059;field_5280:Ljava/util/Map;
named sprites
Lnet/minecraft/client/texture/SpriteAtlasTexture;sprites:Ljava/util/Map;
-
missingSprite
- Mappings:
Namespace Name Mixin selector official k
Lfzd;k:Lfze;
intermediary field_46207
Lnet/minecraft/class_1059;field_46207:Lnet/minecraft/class_1058;
named missingSprite
Lnet/minecraft/client/texture/SpriteAtlasTexture;missingSprite:Lnet/minecraft/client/texture/Sprite;
-
id
- Mappings:
Namespace Name Mixin selector official l
Lfzd;l:Laew;
intermediary field_21749
Lnet/minecraft/class_1059;field_21749:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/texture/SpriteAtlasTexture;id:Lnet/minecraft/util/Identifier;
-
maxTextureSize
private final int maxTextureSize- Mappings:
Namespace Name Mixin selector official m
Lfzd;m:I
intermediary field_17899
Lnet/minecraft/class_1059;field_17899:I
named maxTextureSize
Lnet/minecraft/client/texture/SpriteAtlasTexture;maxTextureSize:I
-
width
private int width- Mappings:
Namespace Name Mixin selector official n
Lfzd;n:I
intermediary field_43113
Lnet/minecraft/class_1059;field_43113:I
named width
Lnet/minecraft/client/texture/SpriteAtlasTexture;width:I
-
height
private int height- Mappings:
Namespace Name Mixin selector official o
Lfzd;o:I
intermediary field_43114
Lnet/minecraft/class_1059;field_43114:I
named height
Lnet/minecraft/client/texture/SpriteAtlasTexture;height:I
-
mipLevel
private int mipLevel- Mappings:
Namespace Name Mixin selector official p
Lfzd;p:I
intermediary field_43115
Lnet/minecraft/class_1059;field_43115:I
named mipLevel
Lnet/minecraft/client/texture/SpriteAtlasTexture;mipLevel:I
-
-
Constructor Details
-
SpriteAtlasTexture
- Mappings:
Namespace Name Mixin selector official <init>
Lfzd;<init>(Laew;)V
intermediary <init>
Lnet/minecraft/class_1059;<init>(Lnet/minecraft/class_2960;)V
named <init>
Lnet/minecraft/client/texture/SpriteAtlasTexture;<init>(Lnet/minecraft/util/Identifier;)V
-
-
Method Details
-
load
- Specified by:
load
in classAbstractTexture
- Mappings:
Namespace Name Mixin selector official a
Lfyp;a(Lant;)V
intermediary method_4625
Lnet/minecraft/class_1044;method_4625(Lnet/minecraft/class_3300;)V
named load
Lnet/minecraft/client/texture/AbstractTexture;load(Lnet/minecraft/resource/ResourceManager;)V
-
upload
- Mappings:
Namespace Name Mixin selector official a
Lfzd;a(Lfyz$a;)V
intermediary method_45848
Lnet/minecraft/class_1059;method_45848(Lnet/minecraft/class_7766$class_7767;)V
named upload
Lnet/minecraft/client/texture/SpriteAtlasTexture;upload(Lnet/minecraft/client/texture/SpriteLoader$StitchResult;)V
-
save
- Specified by:
save
in interfaceDynamicTexture
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lfyq;a(Laew;Ljava/nio/file/Path;)V
intermediary method_49712
Lnet/minecraft/class_8215;method_49712(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)V
named save
Lnet/minecraft/client/texture/DynamicTexture;save(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)V
-
dumpAtlasInfos
- Mappings:
Namespace Name Mixin selector official a
Lfzd;a(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
intermediary method_45849
Lnet/minecraft/class_1059;method_45849(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
named dumpAtlasInfos
Lnet/minecraft/client/texture/SpriteAtlasTexture;dumpAtlasInfos(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
-
tickAnimatedSprites
public void tickAnimatedSprites()- Mappings:
Namespace Name Mixin selector official d
Lfzd;d()V
intermediary method_4612
Lnet/minecraft/class_1059;method_4612()V
named tickAnimatedSprites
Lnet/minecraft/client/texture/SpriteAtlasTexture;tickAnimatedSprites()V
-
tick
public void tick()- Specified by:
tick
in interfaceTextureTickListener
- Mappings:
Namespace Name Mixin selector official e
Lfzg;e()V
intermediary method_4622
Lnet/minecraft/class_1061;method_4622()V
named tick
Lnet/minecraft/client/texture/TextureTickListener;tick()V
-
getSprite
- Mappings:
Namespace Name Mixin selector official a
Lfzd;a(Laew;)Lfze;
intermediary method_4608
Lnet/minecraft/class_1059;method_4608(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;
named getSprite
Lnet/minecraft/client/texture/SpriteAtlasTexture;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official f
Lfzd;f()V
intermediary method_4601
Lnet/minecraft/class_1059;method_4601()V
named clear
Lnet/minecraft/client/texture/SpriteAtlasTexture;clear()V
-
getId
- Mappings:
Namespace Name Mixin selector official g
Lfzd;g()Laew;
intermediary method_24106
Lnet/minecraft/class_1059;method_24106()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/client/texture/SpriteAtlasTexture;getId()Lnet/minecraft/util/Identifier;
-
getMaxTextureSize
public int getMaxTextureSize()- Mappings:
Namespace Name Mixin selector official h
Lfzd;h()I
intermediary method_45850
Lnet/minecraft/class_1059;method_45850()I
named getMaxTextureSize
Lnet/minecraft/client/texture/SpriteAtlasTexture;getMaxTextureSize()I
-
getWidth
int getWidth()- Mappings:
Namespace Name Mixin selector official i
Lfzd;i()I
intermediary method_49713
Lnet/minecraft/class_1059;method_49713()I
named getWidth
Lnet/minecraft/client/texture/SpriteAtlasTexture;getWidth()I
-
getHeight
int getHeight()- Mappings:
Namespace Name Mixin selector official j
Lfzd;j()I
intermediary method_49714
Lnet/minecraft/class_1059;method_49714()I
named getHeight
Lnet/minecraft/client/texture/SpriteAtlasTexture;getHeight()I
-
applyTextureFilter
- Mappings:
Namespace Name Mixin selector official b
Lfzd;b(Lfyz$a;)V
intermediary method_24198
Lnet/minecraft/class_1059;method_24198(Lnet/minecraft/class_7766$class_7767;)V
named applyTextureFilter
Lnet/minecraft/client/texture/SpriteAtlasTexture;applyTextureFilter(Lnet/minecraft/client/texture/SpriteLoader$StitchResult;)V
-