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
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final Set
<MetadataSectionSerializer<?>> protected final TextureAtlas
-
Constructor Summary
ConstructorDescriptionTextureAtlasHolder
(TextureManager p_262057_, ResourceLocation p_261554_, ResourceLocation p_262147_) TextureAtlasHolder
(TextureManager p_294921_, ResourceLocation p_295514_, ResourceLocation p_294920_, Set<MetadataSectionSerializer<?>> p_295003_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
apply
(SpriteLoader.Preparations p_252333_, ProfilerFiller p_250624_) void
close()
protected TextureAtlasSprite
getSprite
(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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
textureAtlas
-
atlasInfoLocation
-
metadataSections
-
-
Constructor Details
-
TextureAtlasHolder
public TextureAtlasHolder(TextureManager p_262057_, ResourceLocation p_261554_, ResourceLocation p_262147_) -
TextureAtlasHolder
public TextureAtlasHolder(TextureManager p_294921_, ResourceLocation p_295514_, ResourceLocation p_294920_, Set<MetadataSectionSerializer<?>> p_295003_)
-
-
Method Details
-
getSprite
-
reload
public 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:
reload
in interfacePreparableReloadListener
-
apply
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-