Class RenderGuiEvent

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

public abstract class RenderGuiEvent extends net.minecraftforge.eventbus.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.

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
     
    private final PoseStack
     
    private final Window
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RenderGuiEvent(Window window, PoseStack poseStack, float partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
     
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

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

    • window

      private final Window window
    • poseStack

      private final PoseStack poseStack
    • partialTick

      private final float partialTick
  • Constructor Details

    • RenderGuiEvent

      @Internal protected RenderGuiEvent(Window window, PoseStack poseStack, float partialTick)
  • Method Details

    • getWindow

      public Window getWindow()
    • getPoseStack

      public PoseStack getPoseStack()
    • getPartialTick

      public float getPartialTick()