Package net.minecraft.client.resources
Class TextureAtlasHolder
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<TextureAtlas.Preparations>
net.minecraft.client.resources.TextureAtlasHolder
- All Implemented Interfaces:
AutoCloseable
,PreparableReloadListener
- Direct Known Subclasses:
MobEffectTextureManager
,PaintingTextureManager
public abstract class TextureAtlasHolder
extends SimplePreparableReloadListener<TextureAtlas.Preparations>
implements AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTextureAtlasHolder
(TextureManager p_118887_, ResourceLocation p_118888_, String p_118889_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(TextureAtlas.Preparations p_118894_, ResourceManager p_118895_, ProfilerFiller p_118896_) void
close()
protected abstract Stream<ResourceLocation>
protected TextureAtlasSprite
getSprite
(ResourceLocation p_118902_) protected TextureAtlas.Preparations
prepare
(ResourceManager p_118891_, ProfilerFiller p_118892_) private ResourceLocation
resolveLocation
(ResourceLocation p_118907_) Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
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.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
textureAtlas
-
prefix
-
-
Constructor Details
-
TextureAtlasHolder
-
-
Method Details
-
getResourcesToLoad
-
getSprite
-
resolveLocation
-
prepare
- Specified by:
prepare
in classSimplePreparableReloadListener<TextureAtlas.Preparations>
-
apply
protected void apply(TextureAtlas.Preparations p_118894_, ResourceManager p_118895_, ProfilerFiller p_118896_) - Specified by:
apply
in classSimplePreparableReloadListener<TextureAtlas.Preparations>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-