Class RenderGuiOverlayEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderGuiOverlayEvent
Direct Known Subclasses:
RenderGuiOverlayEvent.Post, RenderGuiOverlayEvent.Pre

public abstract class RenderGuiOverlayEvent extends net.minecraftforge.eventbus.api.Event
Fired when an overlay is rendered to the screen. See the two subclasses for listening to the two possible phases.

An overlay that is not normally active cannot be forced to render. In such cases, this event will not fire.

See Also:
  • Field Details

    • window

      private final Window window
    • guiGraphics

      private final GuiGraphics guiGraphics
    • partialTick

      private final float partialTick
    • overlay

      private final NamedGuiOverlay overlay
  • Constructor Details

  • Method Details

    • getWindow

      public Window getWindow()
    • getGuiGraphics

      public GuiGraphics getGuiGraphics()
    • getPartialTick

      public float getPartialTick()
    • getOverlay

      public NamedGuiOverlay getOverlay()