Class ResultedEvent.ComponentResult

    • Constructor Detail

      • ComponentResult

        protected ComponentResult​(boolean status,
                                  @Nullable net.kyori.adventure.text.Component reason)
    • Method Detail

      • isAllowed

        public boolean isAllowed()
        Description copied from interface: ResultedEvent.Result
        Returns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method.
        Specified by:
        isAllowed in interface ResultedEvent.Result
        Returns:
        whether or not the event is allowed to proceed
      • getReason

        public java.util.Optional<net.kyori.adventure.text.Component> getReason()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object