public class MapItemRenderer
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
(package private) class |
MapItemRenderer.Instance |
Modifier and Type | Field and Description |
---|---|
private static RenderType |
field_228085_d_ |
private java.util.Map<java.lang.String,MapItemRenderer.Instance> |
loadedMaps |
private static ResourceLocation |
TEXTURE_MAP_ICONS |
private TextureManager |
textureManager |
Constructor and Description |
---|
MapItemRenderer(TextureManager textureManagerIn) |
Modifier and Type | Method and Description |
---|---|
void |
clearLoadedMaps() |
void |
close() |
MapData |
getData(MapItemRenderer.Instance p_191207_1_) |
MapItemRenderer.Instance |
getMapInstanceIfExists(java.lang.String p_191205_1_) |
private MapItemRenderer.Instance |
getMapRendererInstance(MapData mapdataIn) |
void |
renderMap(MatrixStack p_228086_1_,
IRenderTypeBuffer p_228086_2_,
MapData p_228086_3_,
boolean p_228086_4_,
int p_228086_5_) |
void |
updateMapTexture(MapData mapdataIn) |
private static final ResourceLocation TEXTURE_MAP_ICONS
private static final RenderType field_228085_d_
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(MatrixStack p_228086_1_, IRenderTypeBuffer p_228086_2_, MapData p_228086_3_, boolean p_228086_4_, int p_228086_5_)
private MapItemRenderer.Instance getMapRendererInstance(MapData mapdataIn)
@Nullable public MapItemRenderer.Instance getMapInstanceIfExists(java.lang.String p_191205_1_)
public void clearLoadedMaps()
@Nullable public MapData getData(@Nullable MapItemRenderer.Instance p_191207_1_)
public void close()
close
in interface java.lang.AutoCloseable