Interface ClientScreenInputEvent.MouseReleased
- Enclosing interface:
- ClientScreenInputEvent
public static interface ClientScreenInputEvent.MouseReleased
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResult
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
net.minecraft.world.InteractionResult 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'sGuiScreenEvent.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:
- Any other result than
InteractionResult.PASS
leads to the cancellation of the key release.
-