Class SpriteMap
- java.lang.Object
-
- net.minecraft.client.renderer.texture.SpriteMap
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SpriteMap extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ResourceLocation,AtlasTexture>
atlases
-
Constructor Summary
Constructors Constructor Description SpriteMap(java.util.Collection<AtlasTexture> p_i226042_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
AtlasTexture
getAtlas(ResourceLocation p_229152_1_)
TextureAtlasSprite
getSprite(RenderMaterial p_229151_1_)
-
-
-
Field Detail
-
atlases
private final java.util.Map<ResourceLocation,AtlasTexture> atlases
-
-
Constructor Detail
-
SpriteMap
public SpriteMap(java.util.Collection<AtlasTexture> p_i226042_1_)
-
-
Method Detail
-
getAtlas
public AtlasTexture getAtlas(ResourceLocation p_229152_1_)
-
getSprite
public TextureAtlasSprite getSprite(RenderMaterial p_229151_1_)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-