Package net.minecraft.client.resources
Class TextureAtlasHolder
java.lang.Object
net.minecraft.client.resources.TextureAtlasHolder
- All Implemented Interfaces:
AutoCloseable,PreparableReloadListener
- Direct Known Subclasses:
GuiSpriteManager,MapDecorationTextureManager,MobEffectTextureManager,PaintingTextureManager
public abstract class TextureAtlasHolder
extends Object
implements PreparableReloadListener, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final Set<MetadataSectionSerializer<?>> protected final TextureAtlas -
Constructor Summary
ConstructorsConstructorDescriptionTextureAtlasHolder(TextureManager pTextureManager, ResourceLocation pTextureAtlasLocation, ResourceLocation pAtlasInfoLocation) TextureAtlasHolder(TextureManager pTextureManager, ResourceLocation pTextureAtlasLocation, ResourceLocation pAtlasInfoLocation, Set<MetadataSectionSerializer<?>> pMetadataSections) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapply(SpriteLoader.Preparations pPreparations, ProfilerFiller pProfiler) voidclose()protected TextureAtlasSpritegetSprite(ResourceLocation pLocation) Gets a sprite associated with the passed resource location.final CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier pPreparationBarrier, ResourceManager pResourceManager, ProfilerFiller pPreparationsProfiler, ProfilerFiller pReloadProfiler, Executor pBackgroundExecutor, Executor pGameExecutor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
textureAtlas
-
atlasInfoLocation
-
metadataSections
-
-
Constructor Details
-
TextureAtlasHolder
public TextureAtlasHolder(TextureManager pTextureManager, ResourceLocation pTextureAtlasLocation, ResourceLocation pAtlasInfoLocation) -
TextureAtlasHolder
public TextureAtlasHolder(TextureManager pTextureManager, ResourceLocation pTextureAtlasLocation, ResourceLocation pAtlasInfoLocation, Set<MetadataSectionSerializer<?>> pMetadataSections)
-
-
Method Details
-
getSprite
Gets a sprite associated with the passed resource location. -
reload
public final CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier pPreparationBarrier, ResourceManager pResourceManager, ProfilerFiller pPreparationsProfiler, ProfilerFiller pReloadProfiler, Executor pBackgroundExecutor, Executor pGameExecutor) - Specified by:
reloadin interfacePreparableReloadListener
-
apply
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-