Interface ClientRawInputEvent.MouseScrolled

Enclosing interface:
ClientRawInputEvent

public static interface ClientRawInputEvent.MouseScrolled
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.InteractionResult
    mouseScrolled(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's InputEvent.MouseScrollEvent event.
      Parameters:
      client - The Minecraft instance performing it.
      amount - The amount of movement.
      Returns:
      Any other result than InteractionResult.PASS leads 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.