Interface IMapDecorationRenderer
public interface IMapDecorationRenderer
Interface for custom
MapDecoration renderers-
Method Summary
Modifier and TypeMethodDescriptionbooleanrender(MapRenderState.MapDecorationRenderState decorationRenderState, PoseStack poseStack, MultiBufferSource bufferSource, MapRenderState mapRenderState, MapDecorationTextureManager decorationTextures, boolean inItemFrame, int packedLight, int index) Render the givenMapDecorationon the map.
-
Method Details
-
render
boolean render(MapRenderState.MapDecorationRenderState decorationRenderState, PoseStack poseStack, MultiBufferSource bufferSource, MapRenderState mapRenderState, MapDecorationTextureManager decorationTextures, boolean inItemFrame, int packedLight, int index) Render the givenMapDecorationon the map. If this method returns true, the vanilla rendering will be canceled. Otherwise, it will render above whatever is rendered in this method, if anything- Parameters:
decorationRenderState- The state decoration to be renderedposeStack- ThePoseStackto render the decoration withbufferSource- TheMultiBufferSourceto render the decoration withmapRenderState- The state of the map being rendereddecorationTextures- The manager holding map decoration spritesinItemFrame- Whether the map is being rendered in an item framepackedLight- The packed light valueindex- The z index of the decoration being rendered- Returns:
- true to cancel vanilla rendering
-