Class RegisterRenderPipelinesEvent

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

public class RegisterRenderPipelinesEvent extends net.neoforged.bus.api.Event implements net.neoforged.fml.event.IModBusEvent
Fired to allow mods to register custom pipelines. This event is fired after the default Minecraft pipelines have been registered.

This event is not cancellable.

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

  • Field Details

    • registrar

      private final Consumer<com.mojang.blaze3d.pipeline.RenderPipeline> registrar
  • Constructor Details

    • RegisterRenderPipelinesEvent

      @Internal public RegisterRenderPipelinesEvent(Consumer<com.mojang.blaze3d.pipeline.RenderPipeline> registrar)
  • Method Details

    • registerPipeline

      public void registerPipeline(com.mojang.blaze3d.pipeline.RenderPipeline pipeline)
      Registers a RenderPipeline
      Parameters:
      pipeline - a pipeline