类 ScreenEvent.MouseInput

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
直接已知子类:
ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled
封闭类:
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.
另请参阅:
  • 字段详细资料

    • mouseX

      private final double mouseX
    • mouseY

      private final double mouseY
  • 构造器详细资料

    • MouseInput

      @Internal protected MouseInput(Screen screen, double mouseX, double mouseY)
  • 方法详细资料

    • getMouseX

      public double getMouseX()
      返回 the X position of the mouse cursor, relative to the screen。
      返回:
      the X position of the mouse cursor, relative to the screen
    • getMouseY

      public double getMouseY()
      返回 the Y position of the mouse cursor, relative to the screen。
      返回:
      the Y position of the mouse cursor, relative to the screen