Class ScreenEvent.MouseDragged.Pre

Enclosing class:
ScreenEvent.MouseDragged

public static class ScreenEvent.MouseDragged.Pre extends ScreenEvent.MouseDragged
Fired before the mouse drag is handled by the screen.

This event is cancellable, and does not have a result. If the event is cancelled, the screen's mouse drag handler will be bypassed and the corresponding ScreenEvent.MouseDragged.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, int mouseButton, double dragX, double dragY)