Class MouseScrollEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.MouseScrollEvent

public class MouseScrollEvent extends Event
Fired when the mouse scroll wheel is moved. Cancellable — cancelling prevents the scroll from propagating to vanilla.
  • Constructor Details

    • MouseScrollEvent

      public MouseScrollEvent(double horizontal, double vertical)
  • Method Details

    • getHorizontal

      public double getHorizontal()
      Horizontal scroll amount (rarely non-zero).
    • getVertical

      public double getVertical()
      Vertical scroll amount (positive = scroll up, negative = scroll down).