Package net.minecraftforge.client.event
Class GuiScreenEvent.MouseScrollEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiScreenEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent
net.minecraftforge.client.event.GuiScreenEvent.MouseScrollEvent
- Direct Known Subclasses:
GuiScreenEvent.MouseScrollEvent.Post
,GuiScreenEvent.MouseScrollEvent.Pre
- Enclosing class:
- GuiScreenEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event fires afterIGuiEventListener#mouseScrolled(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.GuiScreenEvent
GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardCharTypedEvent, GuiScreenEvent.KeyboardKeyEvent, GuiScreenEvent.KeyboardKeyPressedEvent, GuiScreenEvent.KeyboardKeyReleasedEvent, GuiScreenEvent.MouseClickedEvent, GuiScreenEvent.MouseDragEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.MouseReleasedEvent, GuiScreenEvent.MouseScrollEvent, GuiScreenEvent.PotionShiftEvent
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 gui, double mouseX, double mouseY, double scrollDelta) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.GuiScreenEvent
getGui
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()
-