Class ScreenEvent.MouseScrolled.Pre
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
net.neoforged.neoforge.client.event.ScreenEvent.MouseScrolled.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ScreenEvent.MouseScrolled
public static class ScreenEvent.MouseScrolled.Pre
extends ScreenEvent.MouseScrolled
implements net.neoforged.bus.api.ICancellableEvent
Fired before the mouse scroll is handled by the screen.
This event is cancellable, and does not
.
If the event is cancelled, the screen's mouse scroll handler will be bypassed
and the corresponding invalid reference
have a result
ScreenEvent.MouseScrolled.Post will not be fired.
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseScrolled
ScreenEvent.MouseScrolled.Post, ScreenEvent.MouseScrolled.PreNested 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.RenderInventoryMobEffects -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.MouseScrolled
getScrollDeltaX, getScrollDeltaYMethods 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
@Internal public Pre(Screen screen, double mouseX, double mouseY, double scrollDeltaX, double scrollDeltaY)
-