Interface ClientRawInputEvent.MouseClicked

Enclosing interface:
ClientRawInputEvent

public static interface ClientRawInputEvent.MouseClicked
  • Method Summary

    Modifier and Type
    Method
    Description
    mouseClicked(net.minecraft.client.Minecraft client, int button, int action, int mods)
    Invoked whenever a mouse button is pressed.
  • Method Details

    • mouseClicked

      EventResult mouseClicked(net.minecraft.client.Minecraft client, int button, int action, int mods)
      Invoked whenever a mouse button is pressed. There are two variants, either a raw mouse input or the input after it is processed by the game.
      Parameters:
      client - The Minecraft instance performing it.
      button - The pressed mouse button.
      action - The action that should be performed.
      mods - Additional modifiers.
      Returns:
      A EventResult determining the outcome of the event, the execution of the vanilla clicking mechanism may be cancelled by the result.