Class SpriteUploader
java.lang.Object
net.minecraft.client.resources.ReloadListener<AtlasTexture.SheetData>
net.minecraft.client.renderer.texture.SpriteUploader
- All Implemented Interfaces:
AutoCloseable
,IFutureReloadListener
- Direct Known Subclasses:
PaintingSpriteUploader
,PotionSpriteUploader
public abstract class SpriteUploader
extends ReloadListener<AtlasTexture.SheetData>
implements AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpriteUploader
(TextureManager p_i50905_1_, ResourceLocation p_i50905_2_, String p_i50905_3_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(AtlasTexture.SheetData p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) void
close()
protected abstract Stream<ResourceLocation>
protected TextureAtlasSprite
getSprite
(ResourceLocation p_215282_1_) protected AtlasTexture.SheetData
prepare
(IResourceManager p_212854_1_, IProfiler p_212854_2_) private ResourceLocation
resolveLocation
(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 Details
-
textureAtlas
-
prefix
-
-
Constructor Details
-
SpriteUploader
-
-
Method Details
-
getResourcesToLoad
-
getSprite
-
resolveLocation
-
prepare
- Specified by:
prepare
in classReloadListener<AtlasTexture.SheetData>
-
apply
protected void apply(AtlasTexture.SheetData p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_) - Specified by:
apply
in classReloadListener<AtlasTexture.SheetData>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-