Class MapDecorationRenderTests.TestDecorationRenderer

java.lang.Object
net.neoforged.neoforge.debug.client.MapDecorationRenderTests.TestDecorationRenderer
All Implemented Interfaces:
IMapDecorationRenderer
Enclosing class:
MapDecorationRenderTests

private static final class MapDecorationRenderTests.TestDecorationRenderer extends Object implements IMapDecorationRenderer
  • Field Details

  • Constructor Details

  • Method Details

    • render

      public boolean render(MapRenderState.MapDecorationRenderState decoration, PoseStack poseStack, MultiBufferSource bufferSource, MapRenderState mapRenderState, MapDecorationTextureManager decorationTextures, boolean inItemFrame, int packedLight, int index)
      Description copied from interface: IMapDecorationRenderer
      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
      Specified by:
      render in interface IMapDecorationRenderer
      Parameters:
      decoration - The state decoration to be rendered
      poseStack - The PoseStack to render the decoration with
      bufferSource - The MultiBufferSource to render the decoration with
      mapRenderState - The state of the map being rendered
      decorationTextures - The manager 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