public abstract class SpriteUploader extends ReloadListener<AtlasTexture.SheetData> implements java.lang.AutoCloseable
IFutureReloadListener.IStage| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
prefix |
private AtlasTexture |
textureAtlas |
| Constructor and Description |
|---|
SpriteUploader(TextureManager textureManagerIn,
ResourceLocation atlasTextureLocation,
java.lang.String prefixIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(AtlasTexture.SheetData objectIn,
IResourceManager resourceManagerIn,
IProfiler profilerIn) |
void |
close() |
protected abstract java.util.stream.Stream<ResourceLocation> |
getResourceLocations() |
protected TextureAtlasSprite |
getSprite(ResourceLocation locationIn) |
protected AtlasTexture.SheetData |
prepare(IResourceManager resourceManagerIn,
IProfiler profilerIn) |
private ResourceLocation |
resolveLocation(ResourceLocation locationIn) |
reloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_225594_i_private final AtlasTexture textureAtlas
private final java.lang.String prefix
public SpriteUploader(TextureManager textureManagerIn, ResourceLocation atlasTextureLocation, java.lang.String prefixIn)
protected abstract java.util.stream.Stream<ResourceLocation> getResourceLocations()
protected TextureAtlasSprite getSprite(ResourceLocation locationIn)
private ResourceLocation resolveLocation(ResourceLocation locationIn)
protected AtlasTexture.SheetData prepare(IResourceManager resourceManagerIn, IProfiler profilerIn)
prepare in class ReloadListener<AtlasTexture.SheetData>protected void apply(AtlasTexture.SheetData objectIn, IResourceManager resourceManagerIn, IProfiler profilerIn)
apply in class ReloadListener<AtlasTexture.SheetData>public void close()
close in interface java.lang.AutoCloseable