Interface IMapDecorationRenderer


public interface IMapDecorationRenderer
Interface for custom MapDecoration renderers
  • Method Details

    • render

      boolean render(MapRenderState.MapDecorationRenderState decorationRenderState, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, MapRenderState mapRenderState, TextureAtlas decorationSprites, boolean inItemFrame, int packedLight, int index)
      Render the given MapDecoration on 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 rendered
      poseStack - The PoseStack to render the decoration with
      submitNodeCollector - The SubmitNodeCollector to render the decoration with
      mapRenderState - The state of the map being rendered
      decorationSprites - The atlas holding map decoration sprites
      inItemFrame - Whether the map is being rendered in an item frame
      packedLight - The packed light value
      index - The z index of the decoration being rendered
      Returns:
      true to cancel vanilla rendering