Class ScreenEvent.DrawScreenEvent

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

public static class ScreenEvent.DrawScreenEvent extends ScreenEvent
  • Field Details

    • poseStack

      private final PoseStack poseStack
    • mouseX

      private final int mouseX
    • mouseY

      private final int mouseY
    • partialTicks

      private final float partialTicks
  • Constructor Details

    • DrawScreenEvent

      public DrawScreenEvent(Screen screen, PoseStack poseStack, int mouseX, int mouseY, float partialTicks)
  • Method Details

    • getPoseStack

      public PoseStack getPoseStack()
      The PoseStack to render with.
    • getMouseX

      public int getMouseX()
      The x coordinate of the mouse pointer on the screen.
    • getMouseY

      public int getMouseY()
      The y coordinate of the mouse pointer on the screen.
    • getPartialTicks

      public float getPartialTicks()
      Partial render ticks elapsed.