Class ScreenEvent.MouseButtonPressed.Post

Enclosing class:
ScreenEvent.MouseButtonPressed

public static class ScreenEvent.MouseButtonPressed.Post extends ScreenEvent.MouseButtonPressed
This event is fired after the mouse click is handled, if the corresponding ScreenEvent.MouseButtonPressed.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

    • wasClickHandled

      public boolean wasClickHandled()
      Returns true if the mouse click was already handled by its screen.
      Returns:
      true if the mouse click was already handled by its screen
    • setResult

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

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

      public boolean getClickResult()
      Returns The (possibly event-modified) state of the click.
      Returns:
      The (possibly event-modified) state of the click