Package net.minecraftforge.client.event
Class ScreenEvent.MouseScrollEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInputEvent
net.minecraftforge.client.event.ScreenEvent.MouseScrollEvent
- Direct Known Subclasses:
ScreenEvent.MouseScrollEvent.Post
,ScreenEvent.MouseScrollEvent.Pre
- Enclosing class:
- ScreenEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event fires afterGuiEventListener.mouseScrolled(double, double, double)
if the scroll was not already handled.static class
This event fires when a mouse scroll is detected for a GuiScreen, before it is handled.Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundDrawnEvent, ScreenEvent.DrawScreenEvent, ScreenEvent.InitScreenEvent, ScreenEvent.KeyboardCharTypedEvent, ScreenEvent.KeyboardKeyEvent, ScreenEvent.KeyboardKeyPressedEvent, ScreenEvent.KeyboardKeyReleasedEvent, ScreenEvent.MouseClickedEvent, ScreenEvent.MouseDragEvent, ScreenEvent.MouseInputEvent, ScreenEvent.MouseReleasedEvent, ScreenEvent.MouseScrollEvent, ScreenEvent.PotionShiftEvent, ScreenEvent.PotionSizeEvent
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
-
Constructor Summary
ConstructorDescriptionMouseScrollEvent
(Screen screen, double mouseX, double mouseY, double scrollDelta) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.ScreenEvent.MouseInputEvent
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
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
-
-
Constructor Details
-
MouseScrollEvent
-
-
Method Details
-
getScrollDelta
public double getScrollDelta()
-