Class ScreenEvent.MouseScrollEvent.Pre

Enclosing class:
ScreenEvent.MouseScrollEvent

public static class ScreenEvent.MouseScrollEvent.Pre extends ScreenEvent.MouseScrollEvent
This event fires when a mouse scroll is detected for a GuiScreen, before it is handled. Cancel this event to bypass GuiEventListener.mouseScrolled(double, double, double).
  • Constructor Details

    • Pre

      public Pre(Screen screen, double mouseX, double mouseY, double scrollDelta)