Interface Event.Result

Enclosing interface:
Event
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Event.Result
The result of executing an event's handlers.
  • Field Details

  • Method Details

    • ofCancellable

      static Event.Result ofCancellable(CancellableEvent event)
    • withReason

      static Event.Result withReason(boolean success, String reason)
    • successful

      boolean successful()
      Whether the handlers were successful. If false, the event should be considered cancelled and native execution should be stopped where possible.
    • failed

      default boolean failed()
      Inverse of successful()
    • reason

      @Nullable default @Nullable String reason()
      The reason given for this result. May be null.