Class ScreenEvent.MouseReleasedEvent.Post

Enclosing class:
ScreenEvent.MouseReleasedEvent

public static class ScreenEvent.MouseReleasedEvent.Post extends ScreenEvent.MouseReleasedEvent
This event fires after GuiEventListener.mouseReleased(double, double, int).

This event has a result.

  • Event.Result.ALLOW - to force set the mouse release as handled
  • Event.Result.DEFAULT - to use the default value of handled
  • Event.Result.DENY - to force set the mouse release as not handled

  • Field Details

    • handled

      private final boolean handled
  • Constructor Details

    • Post

      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