Package me.hackware.api.event.impl
Class MouseScrollEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.MouseScrollEvent
Fired when the mouse scroll wheel is moved.
Cancellable — cancelling prevents the scroll from propagating to vanilla.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleHorizontal scroll amount (rarely non-zero).doubleVertical scroll amount (positive = scroll up, negative = scroll down).Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
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).
-