Interface ClientRawInputEvent.MouseScrolled

Enclosing interface:
ClientRawInputEvent

public static interface ClientRawInputEvent.MouseScrolled
  • Method Summary

    Modifier and Type
    Method
    Description
    mouseScrolled(net.minecraft.client.Minecraft client, double amount)
    Invoked whenever the mouse scroll wheel is used.
  • Method Details

    • mouseScrolled

      EventResult 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:
      A EventResult determining the outcome of the event, the execution of the vanilla scrolling mechanism may be cancelled by the result.