Class ScreenEvent.MouseInput

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
Direct Known Subclasses:
ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled
Enclosing class:
ScreenEvent

private abstract static class ScreenEvent.MouseInput extends ScreenEvent
Fired whenever an action is performed by the mouse. See the various subclasses to listen for different actions.
See Also:
  • Field Details

    • mouseX

      private final double mouseX
    • mouseY

      private final double mouseY
  • Constructor Details

    • MouseInput

      @Internal protected MouseInput(Screen screen, double mouseX, double mouseY)
  • Method Details

    • getMouseX

      public double getMouseX()
      Returns the X position of the mouse cursor, relative to the screen.
      Returns:
      the X position of the mouse cursor, relative to the screen
    • getMouseY

      public double getMouseY()
      Returns the Y position of the mouse cursor, relative to the screen.
      Returns:
      the Y position of the mouse cursor, relative to the screen