Package net.minecraft.client.gui
Class MapRenderer
java.lang.Object
net.minecraft.client.gui.MapRenderer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final MapDecorationTextureManager
private static final int
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<MapRenderer.MapInstance> (package private) final TextureManager
private static final int
-
Constructor Summary
ConstructorsConstructorDescriptionMapRenderer
(TextureManager textureManager, MapDecorationTextureManager decorationTextures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private MapRenderer.MapInstance
getOrCreateMapInstance
(MapId mapId, MapItemSavedData mapData) void
render
(PoseStack poseStack, MultiBufferSource buffer, MapId mapId, MapItemSavedData mapData, boolean active, int packedLight) void
void
update
(MapId mapId, MapItemSavedData mapData)
-
Field Details
-
WIDTH
private static final int WIDTH- See Also:
-
HEIGHT
private static final int HEIGHT- See Also:
-
textureManager
-
decorationTextures
-
maps
-
-
Constructor Details
-
MapRenderer
-
-
Method Details
-
update
-
render
public void render(PoseStack poseStack, MultiBufferSource buffer, MapId mapId, MapItemSavedData mapData, boolean active, int packedLight) -
getOrCreateMapInstance
-
resetData
public void resetData() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-