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
    • poseStack

      private final PoseStack poseStack
    • partialTick

      private final float partialTick
    • overlay

      private final NamedGuiOverlay overlay
  • Constructor Details

    • RenderGuiOverlayEvent

      @Internal protected RenderGuiOverlayEvent(Window window, PoseStack poseStack, float partialTick, NamedGuiOverlay overlay)
  • Method Details

    • getWindow

      public Window getWindow()
    • getPoseStack

      public PoseStack getPoseStack()
    • getPartialTick

      public float getPartialTick()
    • getOverlay

      public NamedGuiOverlay getOverlay()