Package net.minecraft.client.texture
Class SpriteAtlasHolder
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<SpriteAtlasTexture.Data>
net.minecraft.client.texture.SpriteAtlasHolder
- All Implemented Interfaces:
AutoCloseable
,ResourceReloader
- Direct Known Subclasses:
PaintingManager
,StatusEffectSpriteManager
@Environment(CLIENT)
public abstract class SpriteAtlasHolder
extends SinglePreparationResourceReloader<SpriteAtlasTexture.Data>
implements AutoCloseable
- Mappings:
Namespace Name official fix
intermediary net/minecraft/class_4075
named net/minecraft/client/texture/SpriteAtlasHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpriteAtlasHolder
(TextureManager textureManager, Identifier atlasId, String pathPrefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.void
close()
protected Sprite
getSprite
(Identifier objectId) protected abstract Stream<Identifier>
protected SpriteAtlasTexture.Data
prepare
(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.private Identifier
toSpriteId
(Identifier objectId) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
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.ResourceReloader
getName
-
Field Details
-
atlas
- Mappings:
Namespace Name Mixin selector official a
Lfix;a:Lfie;
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
Lfix;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>
Lfix;<init>(Lfig;Laaj;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
Lfix;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
Lfix;a(Laaj;)Lfif;
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
Lfix;b(Laaj;)Laaj;
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
Description copied from class:SinglePreparationResourceReloader
Prepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
prepare
in classSinglePreparationResourceReloader<SpriteAtlasTexture.Data>
- Parameters:
resourceManager
- the resource managerprofiler
- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector official a
Lfix;a(Lahu;Lawc;)Lfie$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) Description copied from class:SinglePreparationResourceReloader
Handles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
apply
in classSinglePreparationResourceReloader<SpriteAtlasTexture.Data>
- Parameters:
data
- the prepared objectresourceManager
- the resource managerprofiler
- the apply profiler- Mappings:
Namespace Name Mixin selector official a
Lfix;a(Lfie$a;Lahu;Lawc;)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
-