Class ScreenEvent.MouseButtonPressed.Post

Enclosing class:
ScreenEvent.MouseButtonPressed

public static class ScreenEvent.MouseButtonPressed.Post extends ScreenEvent.MouseButtonPressed
Fired after the mouse click is handled, if the corresponding ScreenEvent.MouseButtonPressed.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 click was already handled by its screen.
      Returns:
      true if the mouse click was already handled by its screen