Interface ClientScreenInputEvent.MouseScrolled
- Enclosing interface:
- ClientScreenInputEvent
public static interface ClientScreenInputEvent.MouseScrolled
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResult
mouseScrolled
(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY, double amount) Invoked whenever the mouse scroll wheel is moved.
-
Method Details
-
mouseScrolled
net.minecraft.world.InteractionResult mouseScrolled(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY, double amount) Invoked whenever the mouse scroll wheel is moved. Equivalent to Forge'sGuiScreenEvent.MouseScrollEvent
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.amount
- The amount the scroll wheel is moved.- Returns:
- Any other result than
InteractionResult.PASS
leads to the cancellation of the key release.
-