public class MapItemRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
MapItemRenderer.Instance |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,MapItemRenderer.Instance> |
loadedMaps |
private static ResourceLocation |
mapIcons |
private TextureManager |
textureManager |
Constructor and Description |
---|
MapItemRenderer(TextureManager textureManagerIn) |
Modifier and Type | Method and Description |
---|---|
void |
clearLoadedMaps()
Clears the currently loaded maps and removes their corresponding textures
|
private MapItemRenderer.Instance |
getMapRendererInstance(MapData mapdataIn)
Returns
MapItemRenderer.Instance with given map data |
void |
renderMap(MapData mapdataIn,
boolean p_148250_2_) |
void |
updateMapTexture(MapData mapdataIn)
Updates a map texture
|
private static final ResourceLocation mapIcons
private final TextureManager textureManager
private final java.util.Map<java.lang.String,MapItemRenderer.Instance> loadedMaps
public MapItemRenderer(TextureManager textureManagerIn)
public void updateMapTexture(MapData mapdataIn)
public void renderMap(MapData mapdataIn, boolean p_148250_2_)
private MapItemRenderer.Instance getMapRendererInstance(MapData mapdataIn)
MapItemRenderer.Instance
with given map datapublic void clearLoadedMaps()