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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enables the stencil buffer for the main render target.boolean
Returns whether enabling the stencil buffer on the main render target was requested.
-
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, orfalse
otherwise.
-
enableStencil
public void enableStencil()Enables the stencil buffer for the main render target.
-