Interface ClientRawInputEvent.MouseScrolled
- Enclosing interface:
- ClientRawInputEvent
public static interface ClientRawInputEvent.MouseScrolled
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultmouseScrolled(net.minecraft.client.Minecraft client, double amount) Invoked whenever the mouse scroll wheel is used.
-
Method Details
-
mouseScrolled
net.minecraft.world.InteractionResult mouseScrolled(net.minecraft.client.Minecraft client, double amount) Invoked whenever the mouse scroll wheel is used. Equivalent to Forge'sInputEvent.MouseScrollEventevent.- Parameters:
client- The Minecraft instance performing it.amount- The amount of movement.- Returns:
- Any other result than
InteractionResult.PASSleads to the cancellation of the mouse scroll functions. At the time this is actually called, any open screen already has processed the scroll movement and so it can't be undone.
-