Interface CommandExecutor

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 CommandExecutor
Interface containing the method directing how a certain command will be executed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Callback for the execution of a command.
  • Method Details

    • execute

      Callback for the execution of a command.
      Parameters:
      context - The parsed command arguments for this command
      Returns:
      the result of executing this command
      Throws:
      CommandException - If a user-facing error occurs while executing this command