Package net.minecraftforge.client.event
Class InputEvent.MouseScrollEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.InputEvent
net.minecraftforge.client.event.InputEvent.MouseScrollEvent
- Enclosing class:
- InputEvent
This event fires when the mouse scroll wheel is used outside of a gui.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.InputEvent
InputEvent.ClickInputEvent, InputEvent.KeyInputEvent, InputEvent.MouseInputEvent, InputEvent.MouseScrollEvent, InputEvent.RawMouseEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final boolean
private final double
private final double
private final boolean
private final double
-
Constructor Summary
ConstructorDescriptionMouseScrollEvent
(double scrollDelta, boolean leftDown, boolean middleDown, boolean rightDown, double mouseX, double mouseY) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
boolean
boolean
boolean
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
scrollDelta
private final double scrollDelta -
mouseX
private final double mouseX -
mouseY
private final double mouseY -
leftDown
private final boolean leftDown -
middleDown
private final boolean middleDown -
rightDown
private final boolean rightDown
-
-
Constructor Details
-
MouseScrollEvent
public MouseScrollEvent(double scrollDelta, boolean leftDown, boolean middleDown, boolean rightDown, double mouseX, double mouseY)
-
-
Method Details
-
getScrollDelta
public double getScrollDelta() -
isLeftDown
public boolean isLeftDown() -
isRightDown
public boolean isRightDown() -
isMiddleDown
public boolean isMiddleDown() -
getMouseX
public double getMouseX() -
getMouseY
public double getMouseY()
-