Class RenderGuiEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderGuiEvent
Direct Known Subclasses:
RenderGuiEvent.Post, RenderGuiEvent.Pre

public abstract class RenderGuiEvent extends net.neoforged.bus.api.Event
Fired when the HUD is rendered to the screen. See the two subclasses for listening to the two possible phases.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired after the HUD is rendered to the screen, if the corresponding RenderGuiEvent.Pre is not cancelled.
    static class 
    Fired before the HUD is rendered to the screen.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.minecraft.client.gui.GuiGraphics
     
    private final net.minecraft.client.DeltaTracker
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RenderGuiEvent(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.DeltaTracker partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.gui.GuiGraphics
     
    net.minecraft.client.DeltaTracker
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • guiGraphics

      private final net.minecraft.client.gui.GuiGraphics guiGraphics
    • partialTick

      private final net.minecraft.client.DeltaTracker partialTick
  • Constructor Details

    • RenderGuiEvent

      @Internal protected RenderGuiEvent(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.DeltaTracker partialTick)
  • Method Details

    • getGuiGraphics

      public net.minecraft.client.gui.GuiGraphics getGuiGraphics()
    • getPartialTick

      public net.minecraft.client.DeltaTracker getPartialTick()