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​(CommandSender source, java.lang.String value, int error)
    Executed when an error is found.
  • Method Details

    • apply

      void apply​(@NotNull CommandSender source, @NotNull java.lang.String value, int error)
      Executed when an error is found.
      Parameters:
      source - the sender which executed the command
      value - the raw string argument which is responsible for the error
      error - the error id (you can check its meaning in the specific argument class or ask the developer about it)