Class ScreenEvent.Render

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.Render
Direct Known Subclasses:
ScreenEvent.Render.Post, ScreenEvent.Render.Pre
Enclosing class:
ScreenEvent

public abstract static class ScreenEvent.Render extends ScreenEvent
Fired when a screen is being drawn. See the two subclasses for listening before and after drawing.
See Also:
  • Field Details

    • poseStack

      private final PoseStack poseStack
    • mouseX

      private final int mouseX
    • mouseY

      private final int mouseY
    • partialTick

      private final float partialTick
  • Constructor Details

    • Render

      @Internal protected Render(Screen screen, PoseStack poseStack, int mouseX, int mouseY, float partialTick)
  • Method Details

    • getPoseStack

      public PoseStack getPoseStack()
      Returns the pose stack used for rendering.
      Returns:
      the pose stack used for rendering
    • getMouseX

      public int getMouseX()
      Returns the X coordinate of the mouse pointer.
      Returns:
      the X coordinate of the mouse pointer
    • getMouseY

      public int getMouseY()
      Returns the Y coordinate of the mouse pointer.
      Returns:
      the Y coordinate of the mouse pointer
    • getPartialTick

      public float getPartialTick()
      Returns the partial tick.
      Returns:
      the partial tick