@Environment(value=CLIENT) public class SpriteAtlasManager extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private Map<Identifier,SpriteAtlasTexture> |
atlases |
Constructor and Description |
---|
SpriteAtlasManager(Collection<SpriteAtlasTexture> collection) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SpriteAtlasTexture |
getAtlas(Identifier id) |
Sprite |
getSprite(SpriteIdentifier id) |
private final Map<Identifier,SpriteAtlasTexture> atlases
public SpriteAtlasManager(Collection<SpriteAtlasTexture> collection)
public SpriteAtlasTexture getAtlas(Identifier id)
public Sprite getSprite(SpriteIdentifier id)
public void close()
close
in interface AutoCloseable