@Environment(value=CLIENT) public abstract class SpriteAtlasHolder extends SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data> implements AutoCloseable
ResourceReloadListener.Synchronizer| Modifier and Type | Field and Description |
|---|---|
private SpriteAtlasTexture |
atlas |
private String |
pathPrefix |
| Constructor and Description |
|---|
SpriteAtlasHolder(TextureManager textureManager,
Identifier atlasId,
String pathPrefix) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(SpriteAtlasTexture.Data data,
ResourceManager resourceManager,
Profiler profiler) |
void |
close() |
protected Sprite |
getSprite(Identifier objectId) |
protected abstract Stream<Identifier> |
getSprites() |
protected SpriteAtlasTexture.Data |
prepare(ResourceManager resourceManager,
Profiler profiler) |
private Identifier |
toSpriteId(Identifier objectId) |
reloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameprivate final SpriteAtlasTexture atlas
private final String pathPrefix
public SpriteAtlasHolder(TextureManager textureManager, Identifier atlasId, String pathPrefix)
protected abstract Stream<Identifier> getSprites()
protected Sprite getSprite(Identifier objectId)
private Identifier toSpriteId(Identifier objectId)
protected SpriteAtlasTexture.Data prepare(ResourceManager resourceManager, Profiler profiler)
prepare in class SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>protected void apply(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler)
apply in class SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>public void close()
close in interface AutoCloseable