Interface ArgumentCallback

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 interface ArgumentCallback
Callback executed when an error is found within the Argument.
  • Method Details

    • apply

      void apply(CommandSender sender, ArgumentSyntaxException exception)
      Executed when an error is found.
      Parameters:
      sender - the sender which executed the command
      exception - the exception containing the message, input and error code related to the issue