Interface ClientScreenInputEvent.MouseClicked
- Enclosing interface:
 - ClientScreenInputEvent
 
public static interface ClientScreenInputEvent.MouseClicked
- 
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultmouseClicked(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY, int button) Invoked whenever a mouse click is performed. 
- 
Method Details
- 
mouseClicked
net.minecraft.world.InteractionResult mouseClicked(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY, int button) Invoked whenever a mouse click is performed. A click consists of the press and release of a mouse button. Equivalent to Forge'sGuiScreenEvent.MouseClickedEventevent.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 clicked mouse button.- Returns:
 - Any other result than 
InteractionResult.PASSleads to the cancellation of the key release. 
 
 -