Class ConfigureMainRenderTargetEvent

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

public class ConfigureMainRenderTargetEvent extends net.neoforged.bus.api.Event implements net.neoforged.fml.event.IModBusEvent
Fired when configuring the main render target during startup.

This event is not cancellable.

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

  • Field Details

    • enableStencil

      private boolean enableStencil
  • Constructor Details

    • ConfigureMainRenderTargetEvent

      public ConfigureMainRenderTargetEvent()
  • Method Details

    • isStencilEnabled

      public boolean isStencilEnabled()
      Returns whether enabling the stencil buffer on the main render target was requested.
      Returns:
      true, if the stencil buffer is enabled, or false otherwise.
    • enableStencil

      public void enableStencil()
      Enables the stencil buffer for the main render target.