Class ScreenEvent.MouseButtonReleased.Post

Enclosing class:
ScreenEvent.MouseButtonReleased

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

It is only fired on the physical client.

  • Field Details

  • Constructor Details

    • Post

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

    • wasReleaseHandled

      public boolean wasReleaseHandled()
      Returns:
      true if the mouse release was already handled by the screen
    • setResult

      public void setResult(ScreenEvent.MouseButtonReleased.Post.Result result)
      Changes the result of this event.
    • getResult

      Returns the result of this event, which controls if the release will be treated as handled.
      Returns:
      the result of this event, which controls if the release will be treated as handled
    • getReleaseResult

      public boolean getReleaseResult()
      Returns The (possibly event-modified) state of the release.
      Returns:
      The (possibly event-modified) state of the release