Class RegisterMapDecorationRenderersEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.gui.map.RegisterMapDecorationRenderersEvent
All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent

public final class RegisterMapDecorationRenderersEvent extends net.neoforged.bus.api.Event implements net.neoforged.fml.event.IModBusEvent
Allows users to register custom decoration renderers for MapDecorations which require more dynamic rendering than a single texture on the map decoration atlas allows.

This event is not cancellable

This event is fired on the mod-specific event bus, only on the logical client.

  • Field Details

  • Constructor Details

    • RegisterMapDecorationRenderersEvent

      @Internal public RegisterMapDecorationRenderersEvent(Map<net.minecraft.world.level.saveddata.maps.MapDecorationType,IMapDecorationRenderer> renderers)
  • Method Details

    • register

      public void register(net.minecraft.world.level.saveddata.maps.MapDecorationType type, IMapDecorationRenderer renderer)
      Registers a decoration renderer for the given decoration type
      Parameters:
      type - The MapDecorationType the renderer is used for
      renderer - The IMapDecorationRenderer to render the decoration type with