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 pTextureManager, MapDecorationTextureManager pDecorationTextures) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private MapRenderer.MapInstancegetOrCreateMapInstance(MapId pMapId, MapItemSavedData pMapData) voidrender(PoseStack pPoseStack, MultiBufferSource pBuffer, MapId pMapId, MapItemSavedData pMapData, boolean pActive, int pPackedLight) voidvoidupdate(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:
closein interfaceAutoCloseable
-