Class SpriteUploader
- java.lang.Object
-
- net.minecraft.client.resources.ReloadListener<AtlasTexture.SheetData>
-
- net.minecraft.client.renderer.texture.SpriteUploader
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IFutureReloadListener
- Direct Known Subclasses:
PaintingSpriteUploader,PotionSpriteUploader
public abstract class SpriteUploader extends ReloadListener<AtlasTexture.SheetData> implements java.lang.AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringprefixprivate AtlasTexturetextureAtlas
-
Constructor Summary
Constructors Constructor Description SpriteUploader(TextureManager p_i50905_1_, ResourceLocation p_i50905_2_, java.lang.String p_i50905_3_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidapply(AtlasTexture.SheetData p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)voidclose()protected abstract java.util.stream.Stream<ResourceLocation>getResourcesToLoad()protected TextureAtlasSpritegetSprite(ResourceLocation p_215282_1_)protected AtlasTexture.SheetDataprepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)private ResourceLocationresolveLocation(ResourceLocation p_229299_1_)-
Methods inherited from class net.minecraft.client.resources.ReloadListener
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.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
textureAtlas
private final AtlasTexture textureAtlas
-
prefix
private final java.lang.String prefix
-
-
Constructor Detail
-
SpriteUploader
public SpriteUploader(TextureManager p_i50905_1_, ResourceLocation p_i50905_2_, java.lang.String p_i50905_3_)
-
-
Method Detail
-
getResourcesToLoad
protected abstract java.util.stream.Stream<ResourceLocation> getResourcesToLoad()
-
getSprite
protected TextureAtlasSprite getSprite(ResourceLocation p_215282_1_)
-
resolveLocation
private ResourceLocation resolveLocation(ResourceLocation p_229299_1_)
-
prepare
protected AtlasTexture.SheetData prepare(IResourceManager p_212854_1_, IProfiler p_212854_2_)
- Specified by:
preparein classReloadListener<AtlasTexture.SheetData>
-
apply
protected void apply(AtlasTexture.SheetData p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
- Specified by:
applyin classReloadListener<AtlasTexture.SheetData>
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-