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 MapDecorationTextureManagerprivate static final intprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<MapRenderer.MapInstance> (package private) final TextureManagerprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionMapRenderer(TextureManager textureManager, MapDecorationTextureManager decorationTextures) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private MapRenderer.MapInstancegetOrCreateMapInstance(MapId mapId, MapItemSavedData mapData) voidrender(PoseStack poseStack, MultiBufferSource buffer, MapId mapId, MapItemSavedData mapData, boolean active, int packedLight) voidvoidupdate(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:
closein interfaceAutoCloseable
-