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 Summary

    Modifier and Type
    Method
    Description
    void
    apply(@NotNull CommandSender sender, @NotNull ArgumentSyntaxException exception)
    Executed when an error is found.
  • Method Details

    • apply

      void apply(@NotNull @NotNull CommandSender sender, @NotNull @NotNull 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