Class ScreenEvent.MouseButtonReleased.Post

Enclosing class:
ScreenEvent.MouseButtonReleased

public static class ScreenEvent.MouseButtonReleased.Post extends ScreenEvent.MouseButtonReleased
Fired after the mouse release is handled, if the corresponding ScreenEvent.MouseButtonReleased.Pre was not cancelled.

This event is not cancellable, has a result.

This event is fired on the main Forge event bus, only on the logical client.

  • Field Details

    • handled

      private final boolean handled
  • Constructor Details

    • Post

      @Internal public Post(Screen screen, double mouseX, double mouseY, int button, boolean handled)
  • Method Details

    • wasHandled

      public boolean wasHandled()
      Returns:
      true if the mouse release was already handled by its screen