Class RenderGuiLayerEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderGuiLayerEvent
net.neoforged.neoforge.client.event.RenderGuiLayerEvent.Pre
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
RenderGuiLayerEvent

public static class RenderGuiLayerEvent.Pre extends RenderGuiLayerEvent implements net.neoforged.bus.api.ICancellableEvent
Fired before a GUI layer is rendered to the screen.

This event is cancellable, and does not

invalid reference
have a result
. If this event is cancelled, then the layer will not be rendered, and the corresponding RenderGuiLayerEvent.Post event will not be fired.

This event is fired on the main Forge event bus, only on the logical client.

See Also: