Class ScreenEvent.MouseDragEvent.Pre

Enclosing class:
ScreenEvent.MouseDragEvent

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

    • Pre

      public Pre(Screen screen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)