Class 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

invalid reference
have a result
. If the event is cancelled, the screen's mouse scroll handler will be bypassed and the corresponding ScreenEvent.MouseScrolled.Post will not be fired.

This event is fired on the main Forge event bus, only on the logical client.

  • Constructor Details

    • Pre

      @Internal public Pre(Screen screen, double mouseX, double mouseY, double scrollDeltaX, double scrollDeltaY)