Class ScreenEvent.MouseButtonReleased.Pre

Enclosing class:
ScreenEvent.MouseButtonReleased

public static class ScreenEvent.MouseButtonReleased.Pre extends ScreenEvent.MouseButtonReleased
Fired before the mouse release is handled by the screen.

This event is cancellable, and does not have a result. If the event is cancelled, the screen's mouse release handler will be bypassed and the corresponding ScreenEvent.MouseButtonReleased.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 button)