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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureAtlasHolder(TextureManager p_118887_, ResourceLocation p_118888_, String p_118889_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(TextureAtlas.Preparations p_118894_, ResourceManager p_118895_, ProfilerFiller p_118896_)voidclose()protected abstract Stream<ResourceLocation>protected TextureAtlasSpritegetSprite(ResourceLocation p_118902_)protected TextureAtlas.Preparationsprepare(ResourceManager p_118891_, ProfilerFiller p_118892_)private ResourceLocationresolveLocation(ResourceLocation p_118907_)Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods 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
-
prefix
-
-
Constructor Details
-
TextureAtlasHolder
-
-
Method Details
-
getResourcesToLoad
-
getSprite
-
resolveLocation
-
prepare
- Specified by:
preparein classSimplePreparableReloadListener<TextureAtlas.Preparations>
-
apply
protected void apply(TextureAtlas.Preparations p_118894_, ResourceManager p_118895_, ProfilerFiller p_118896_)- Specified by:
applyin classSimplePreparableReloadListener<TextureAtlas.Preparations>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-