Package net.minecraft.client.gui
Class MapItemRenderer
- java.lang.Object
-
- net.minecraft.client.gui.MapItemRenderer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class MapItemRenderer extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
MapItemRenderer.Instance
-
Field Summary
Fields Modifier and Type Field Description private static RenderType
MAP_ICONS
private static ResourceLocation
MAP_ICONS_LOCATION
private java.util.Map<java.lang.String,MapItemRenderer.Instance>
maps
private TextureManager
textureManager
-
Constructor Summary
Constructors Constructor Description MapItemRenderer(TextureManager p_i45009_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
MapData
getData(MapItemRenderer.Instance p_191207_1_)
private MapItemRenderer.Instance
getMapInstance(MapData p_148248_1_)
MapItemRenderer.Instance
getMapInstanceIfExists(java.lang.String p_191205_1_)
void
render(MatrixStack p_228086_1_, IRenderTypeBuffer p_228086_2_, MapData p_228086_3_, boolean p_228086_4_, int p_228086_5_)
void
resetData()
void
update(MapData p_148246_1_)
-
-
-
Field Detail
-
MAP_ICONS_LOCATION
private static final ResourceLocation MAP_ICONS_LOCATION
-
MAP_ICONS
private static final RenderType MAP_ICONS
-
textureManager
private final TextureManager textureManager
-
maps
private final java.util.Map<java.lang.String,MapItemRenderer.Instance> maps
-
-
Constructor Detail
-
MapItemRenderer
public MapItemRenderer(TextureManager p_i45009_1_)
-
-
Method Detail
-
update
public void update(MapData p_148246_1_)
-
render
public void render(MatrixStack p_228086_1_, IRenderTypeBuffer p_228086_2_, MapData p_228086_3_, boolean p_228086_4_, int p_228086_5_)
-
getMapInstance
private MapItemRenderer.Instance getMapInstance(MapData p_148248_1_)
-
getMapInstanceIfExists
@Nullable public MapItemRenderer.Instance getMapInstanceIfExists(java.lang.String p_191205_1_)
-
resetData
public void resetData()
-
getData
@Nullable public MapData getData(@Nullable MapItemRenderer.Instance p_191207_1_)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-