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 pTextureManager, MapDecorationTextureManager pDecorationTextures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private MapRenderer.MapInstance
getOrCreateMapInstance
(MapId pMapId, MapItemSavedData pMapData) void
render
(PoseStack pPoseStack, MultiBufferSource pBuffer, MapId pMapId, MapItemSavedData pMapData, boolean pActive, int pPackedLight) void
void
update
(MapId pMapId, MapItemSavedData pMapData)
-
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 pPoseStack, MultiBufferSource pBuffer, MapId pMapId, MapItemSavedData pMapData, boolean pActive, int pPackedLight) -
getOrCreateMapInstance
-
resetData
public void resetData() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-