Class ScreenEvent.Render.Pre

java.lang.Object
net.neoforged.bus.api.Event
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
ScreenEvent.Render

public static class ScreenEvent.Render.Pre extends ScreenEvent.Render implements net.neoforged.bus.api.ICancellableEvent
Fired before the screen is drawn.

This event is cancellable, and does not

invalid reference
have a result
. If the event is cancelled, the screen will not be drawn.

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

  • Constructor Details

    • Pre

      @Internal public Pre(Screen screen, GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)