Package net.minecraft.client.resources
Class TextureAtlasHolder
java.lang.Object
net.minecraft.client.resources.TextureAtlasHolder
- All Implemented Interfaces:
- AutoCloseable,- PreparableReloadListener
- Direct Known Subclasses:
- GuiSpriteManager,- MobEffectTextureManager,- PaintingTextureManager
public abstract class TextureAtlasHolder
extends Object
implements PreparableReloadListener, AutoCloseable
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final Set<MetadataSectionSerializer<?>>protected final TextureAtlas
- 
Constructor SummaryConstructorsConstructorDescriptionTextureAtlasHolder(TextureManager p_262057_, ResourceLocation p_261554_, ResourceLocation p_262147_) TextureAtlasHolder(TextureManager p_294921_, ResourceLocation p_295514_, ResourceLocation p_294920_, Set<MetadataSectionSerializer<?>> p_295003_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidapply(SpriteLoader.Preparations p_252333_, ProfilerFiller p_250624_) voidclose()protected TextureAtlasSpritegetSprite(ResourceLocation p_118902_) final CompletableFuture<Void>reload(PreparableReloadListener.PreparationBarrier p_249641_, ResourceManager p_250036_, ProfilerFiller p_249806_, ProfilerFiller p_250732_, Executor p_249427_, Executor p_250510_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetName
- 
Field Details- 
textureAtlas
- 
atlasInfoLocation
- 
metadataSections
 
- 
- 
Constructor Details- 
TextureAtlasHolderpublic TextureAtlasHolder(TextureManager p_262057_, ResourceLocation p_261554_, ResourceLocation p_262147_) 
- 
TextureAtlasHolderpublic TextureAtlasHolder(TextureManager p_294921_, ResourceLocation p_295514_, ResourceLocation p_294920_, Set<MetadataSectionSerializer<?>> p_295003_) 
 
- 
- 
Method Details- 
getSprite
- 
reloadpublic final CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier p_249641_, ResourceManager p_250036_, ProfilerFiller p_249806_, ProfilerFiller p_250732_, Executor p_249427_, Executor p_250510_) - Specified by:
- reloadin interface- PreparableReloadListener
 
- 
apply
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-