Package net.minecraft.client.renderer
Class MapRenderer
java.lang.Object
net.minecraft.client.renderer.MapRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate final MapDecorationTextureManagerprivate static final intprivate static final floatprivate final MapTextureManagerprivate static final int -
Constructor Summary
ConstructorsConstructorDescriptionMapRenderer(MapDecorationTextureManager decorationTextures, MapTextureManager mapTextureManager) -
Method Summary
Modifier and TypeMethodDescriptionextractDecorationRenderState(MapDecoration decoration) voidextractRenderState(MapId id, MapItemSavedData savedData, MapRenderState renderState) voidrender(MapRenderState renderState, PoseStack poseStack, MultiBufferSource bufferSource, boolean active, int packedLight)
-
Field Details
-
MAP_Z_OFFSET
private static final float MAP_Z_OFFSET- See Also:
-
DECORATION_Z_OFFSET
private static final float DECORATION_Z_OFFSET- See Also:
-
WIDTH
private static final int WIDTH- See Also:
-
HEIGHT
private static final int HEIGHT- See Also:
-
mapTextureManager
-
decorationTextures
-
-
Constructor Details
-
MapRenderer
public MapRenderer(MapDecorationTextureManager decorationTextures, MapTextureManager mapTextureManager)
-
-
Method Details
-
render
public void render(MapRenderState renderState, PoseStack poseStack, MultiBufferSource bufferSource, boolean active, int packedLight) -
extractRenderState
-
extractDecorationRenderState
private MapRenderState.MapDecorationRenderState extractDecorationRenderState(MapDecoration decoration)
-