Interface ClientRawInputEvent.MouseClicked
- Enclosing interface:
- ClientRawInputEvent
public static interface ClientRawInputEvent.MouseClicked
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResult
mouseClicked
(net.minecraft.client.Minecraft client, int button, int action, int mods) Invoked whenever a mouse button is pressed.
-
Method Details
-
mouseClicked
net.minecraft.world.InteractionResult 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:
- Any other result than
InteractionResult.PASS
leads to the cancellation of the mouse click.
-