public class SpriteMap
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ResourceLocation,AtlasTexture> |
atlasTextures |
Constructor and Description |
---|
SpriteMap(java.util.Collection<AtlasTexture> atlasTexturesIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
AtlasTexture |
getAtlasTexture(ResourceLocation locationIn) |
TextureAtlasSprite |
getSprite(Material materialIn) |
private final java.util.Map<ResourceLocation,AtlasTexture> atlasTextures
public SpriteMap(java.util.Collection<AtlasTexture> atlasTexturesIn)
public AtlasTexture getAtlasTexture(ResourceLocation locationIn)
public TextureAtlasSprite getSprite(Material materialIn)
public void close()
close
in interface java.lang.AutoCloseable