Interface MapDecorationRenderStateModifier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MapDecorationRenderStateModifier
Function interface for render state modifiers that target MapDecorations. Useful for adding custom data for rendering in IMapDecorationRenderers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData, net.minecraft.client.renderer.state.MapRenderState mapRenderState, net.minecraft.client.renderer.state.MapRenderState.MapDecorationRenderState mapDecorationRenderState)
    Called when the registered MapDecorationType is added to a MapRenderState.
  • Method Details

    • accept

      void accept(net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData, net.minecraft.client.renderer.state.MapRenderState mapRenderState, net.minecraft.client.renderer.state.MapRenderState.MapDecorationRenderState mapDecorationRenderState)
      Called when the registered MapDecorationType is added to a MapRenderState.
      Parameters:
      mapItemSavedData - The map SavedData.
      mapRenderState - The render state of the map after the texture has been set and custom data is added.
      mapDecorationRenderState - The decoration render state after vanilla has set it up.