Package net.minecraft.client.texture
Class SpriteAtlasHolder
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>
net.minecraft.client.texture.SpriteAtlasHolder
- All Implemented Interfaces:
AutoCloseable
,ResourceReloadListener
- Direct Known Subclasses:
PaintingManager
,StatusEffectSpriteManager
@Environment(CLIENT) public abstract class SpriteAtlasHolder extends SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data> implements AutoCloseable
- Mappings:
Namespace Name official esm
intermediary net/minecraft/class_4075
named net/minecraft/client/texture/SpriteAtlasHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
Fields Modifier and Type Field Description private SpriteAtlasTexture
atlas
private String
pathPrefix
-
Constructor Summary
Constructors Constructor Description SpriteAtlasHolder(TextureManager textureManager, Identifier atlasId, String pathPrefix)
-
Method Summary
Modifier and Type Method Description protected void
apply(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler)
void
close()
protected Sprite
getSprite(Identifier objectId)
protected abstract Stream<Identifier>
getSprites()
protected SpriteAtlasTexture.Data
prepare(ResourceManager resourceManager, Profiler profiler)
private Identifier
toSpriteId(Identifier objectId)
Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloadListener
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
atlas
- Mappings:
Namespace Name Mixin selector official a
Lesm;a:Lert;
intermediary field_18230
Lnet/minecraft/class_4075;field_18230:Lnet/minecraft/class_1059;
named atlas
Lnet/minecraft/client/texture/SpriteAtlasHolder;atlas:Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
pathPrefix
- Mappings:
Namespace Name Mixin selector official b
Lesm;b:Ljava/lang/String;
intermediary field_21767
Lnet/minecraft/class_4075;field_21767:Ljava/lang/String;
named pathPrefix
Lnet/minecraft/client/texture/SpriteAtlasHolder;pathPrefix:Ljava/lang/String;
-
-
Constructor Details
-
SpriteAtlasHolder
- Mappings:
Namespace Name Mixin selector official <init>
Lesm;<init>(Lerv;Lwb;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_4075;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;Ljava/lang/String;)V
named <init>
Lnet/minecraft/client/texture/SpriteAtlasHolder;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;Ljava/lang/String;)V
-
-
Method Details
-
getSprites
- Mappings:
Namespace Name Mixin selector official a
Lesm;a()Ljava/util/stream/Stream;
intermediary method_18665
Lnet/minecraft/class_4075;method_18665()Ljava/util/stream/Stream;
named getSprites
Lnet/minecraft/client/texture/SpriteAtlasHolder;getSprites()Ljava/util/stream/Stream;
-
getSprite
- Mappings:
Namespace Name Mixin selector official a
Lesm;a(Lwb;)Leru;
intermediary method_18667
Lnet/minecraft/class_4075;method_18667(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;
named getSprite
Lnet/minecraft/client/texture/SpriteAtlasHolder;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;
-
toSpriteId
- Mappings:
Namespace Name Mixin selector official b
Lesm;b(Lwb;)Lwb;
intermediary method_24140
Lnet/minecraft/class_4075;method_24140(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
named toSpriteId
Lnet/minecraft/client/texture/SpriteAtlasHolder;toSpriteId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
prepare
- Specified by:
prepare
in classSinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>
- Mappings:
Namespace Name Mixin selector official a
Lesm;a(Lacx;Laos;)Lert$a;
intermediary method_18668
Lnet/minecraft/class_4075;method_18668(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1059$class_4007;
named prepare
Lnet/minecraft/client/texture/SpriteAtlasHolder;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/texture/SpriteAtlasTexture$Data;
-
apply
protected void apply(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler)- Specified by:
apply
in classSinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>
- Mappings:
Namespace Name Mixin selector official a
Lesm;a(Lert$a;Lacx;Laos;)V
intermediary method_18666
Lnet/minecraft/class_4075;method_18666(Lnet/minecraft/class_1059$class_4007;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
named apply
Lnet/minecraft/client/texture/SpriteAtlasHolder;apply(Lnet/minecraft/client/texture/SpriteAtlasTexture$Data;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Mappings:
Namespace Name Mixin selector official close
Lesm;close()V
intermediary close
Lnet/minecraft/class_4075;close()V
named close
Lnet/minecraft/client/texture/SpriteAtlasHolder;close()V
-