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 fiyintermediary net/minecraft/class_4075named net/minecraft/client/texture/SpriteAtlasHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpriteAtlasHolder(TextureManager textureManager, Identifier atlasId, String pathPrefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.voidclose()protected SpritegetSprite(Identifier objectId) protected abstract Stream<Identifier>protected SpriteAtlasTexture.Dataprepare(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.private IdentifiertoSpriteId(Identifier objectId) Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
atlas
- Mappings:
Namespace Name Mixin selector official aLfiy;a:Lfif;intermediary field_18230Lnet/minecraft/class_4075;field_18230:Lnet/minecraft/class_1059;named atlasLnet/minecraft/client/texture/SpriteAtlasHolder;atlas:Lnet/minecraft/client/texture/SpriteAtlasTexture;
-
pathPrefix
- Mappings:
Namespace Name Mixin selector official bLfiy;b:Ljava/lang/String;intermediary field_21767Lnet/minecraft/class_4075;field_21767:Ljava/lang/String;named pathPrefixLnet/minecraft/client/texture/SpriteAtlasHolder;pathPrefix:Ljava/lang/String;
-
-
Constructor Details
-
SpriteAtlasHolder
- Mappings:
Namespace Name Mixin selector official <init>Lfiy;<init>(Lfih;Laaj;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4075;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;Ljava/lang/String;)Vnamed <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 aLfiy;a()Ljava/util/stream/Stream;intermediary method_18665Lnet/minecraft/class_4075;method_18665()Ljava/util/stream/Stream;named getSpritesLnet/minecraft/client/texture/SpriteAtlasHolder;getSprites()Ljava/util/stream/Stream;
-
getSprite
- Mappings:
Namespace Name Mixin selector official aLfiy;a(Laaj;)Lfig;intermediary method_18667Lnet/minecraft/class_4075;method_18667(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;named getSpriteLnet/minecraft/client/texture/SpriteAtlasHolder;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;
-
toSpriteId
- Mappings:
Namespace Name Mixin selector official bLfiy;b(Laaj;)Laaj;intermediary method_24140Lnet/minecraft/class_4075;method_24140(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;named toSpriteIdLnet/minecraft/client/texture/SpriteAtlasHolder;toSpriteId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
-
prepare
Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
preparein classSinglePreparationResourceReloader<SpriteAtlasTexture.Data>- Parameters:
resourceManager- the resource managerprofiler- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector official aLfiy;a(Lahu;Lawc;)Lfif$a;intermediary method_18668Lnet/minecraft/class_4075;method_18668(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1059$class_4007;named prepareLnet/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:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<SpriteAtlasTexture.Data>- Parameters:
data- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector official aLfiy;a(Lfif$a;Lahu;Lawc;)Vintermediary method_18666Lnet/minecraft/class_4075;method_18666(Lnet/minecraft/class_1059$class_4007;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vnamed applyLnet/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:
closein interfaceAutoCloseable
-