Class ScreenEvent.MouseScrolled
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.MouseInput
net.neoforged.neoforge.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
Nested ClassesModifier and TypeClassDescriptionstatic classFired after the mouse scroll is handled, if not handled by the screen and the correspondingScreenEvent.MouseScrolled.Preis not cancelled.static classFired before the mouse scroll is handled by the screen.Nested classes/interfaces inherited from class net.neoforged.neoforge.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.RenderInventoryMobEffectsNested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final double - 
Constructor Summary
ConstructorsConstructorDescriptionMouseScrolled(Screen screen, double mouseX, double mouseY, double scrollDeltaX, double scrollDeltaY)  - 
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the amount of change / delta of the mouse scroll on the X axis.doubleReturns the amount of change / delta of the mouse scroll on the Y axis.Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseInput
getMouseX, getMouseYMethods inherited from class net.neoforged.neoforge.client.event.ScreenEvent
getScreenMethods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult 
- 
Field Details
- 
scrollDeltaX
private final double scrollDeltaX - 
scrollDeltaY
private final double scrollDeltaY 
 - 
 - 
Constructor Details
- 
MouseScrolled
@Internal public MouseScrolled(Screen screen, double mouseX, double mouseY, double scrollDeltaX, double scrollDeltaY)  
 - 
 - 
Method Details
- 
getScrollDeltaX
public double getScrollDeltaX()Returns the amount of change / delta of the mouse scroll on the X axis.- Returns:
 - the amount of change / delta of the mouse scroll on the X axis
 
 - 
getScrollDeltaY
public double getScrollDeltaY()Returns the amount of change / delta of the mouse scroll on the Y axis.- Returns:
 - the amount of change / delta of the mouse scroll on the Y axis
 
 
 -