Class GuiScreenEvent.MouseScrollEvent.Pre

Enclosing class:
GuiScreenEvent.MouseScrollEvent

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

    • Pre

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