Class ScreenEvent.BackgroundRendered

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.BackgroundRendered
Enclosing class:
ScreenEvent

public static class ScreenEvent.BackgroundRendered extends ScreenEvent
Fired directly after the background of the screen is drawn. Can be used for drawing above the background but below the tooltips.

This event is not cancellable, and does not

invalid reference
have a result
.

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

  • Field Details

  • Constructor Details

    • BackgroundRendered

      @Internal public BackgroundRendered(Screen screen, GuiGraphics guiGraphics)
  • Method Details

    • getGuiGraphics

      public GuiGraphics getGuiGraphics()
      Returns the gui graphics used for rendering.
      Returns:
      the gui graphics used for rendering