Package net.minecraftforge.client.event
Class ScreenEvent.MouseScrolled
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.MouseInput
net.minecraftforge.client.event.ScreenEvent.MouseScrolled
- Direct Known Subclasses:
ScreenEvent.MouseScrolled.Post
,ScreenEvent.MouseScrolled.Pre
- Enclosing class:
- ScreenEvent
Fired when the mouse was dragged while a button is being held down.
See the two subclasses for listening before and after the normal handling.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the mouse scroll is handled, if not handled by the screen and the correspondingScreenEvent.MouseScrolled.Pre
is not cancelled.static class
Fired before the mouse scroll is handled by the screen.Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
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
ConstructorDescriptionMouseScrolled
(Screen screen, double mouseX, double mouseY, double scrollDelta) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the amount of change / delta of the mouse scroll.Methods inherited from class net.minecraftforge.client.event.ScreenEvent.MouseInput
getMouseX, getMouseY
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
scrollDelta
private final double scrollDelta
-
-
Constructor Details
-
MouseScrolled
-
-
Method Details
-
getScrollDelta
public double getScrollDelta()Returns the amount of change / delta of the mouse scroll.- Returns:
- the amount of change / delta of the mouse scroll
-