Interface ClientScreenInputEvent.MouseReleased

Enclosing interface:
ClientScreenInputEvent

public static interface ClientScreenInputEvent.MouseReleased
  • Method Summary

    Modifier and Type
    Method
    Description
    mouseReleased(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY, int button)
    Invoked whenever a mouse button is released.
  • Method Details

    • mouseReleased

      EventResult mouseReleased(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY, int button)
      Invoked whenever a mouse button is released. Equivalent to Forge's GuiScreenEvent.MouseReleasedEvent event.

      This event is handled in two phases PRE and POST, which are invoked before and after the keys have been processed by the screen, respectively.

      Parameters:
      client - The Minecraft instance performing it.
      screen - The screen this keystroke was performed in.
      mouseX - The scaled x-coordinate of the mouse cursor.
      mouseY - The scaled y-coordinate of the mouse cursor.
      button - The released mouse button.
      Returns:
      A EventResult determining the outcome of the event, the execution of the vanilla releasing mechanism may be cancelled by the result.