Interface CommandExecutor<S>

Type Parameters:
S - sender type
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<S>
Executes a command action built by the command builder API.
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the command with the given execution context.
  • Method Details

    • execute

      CommandResult execute(CommandExecution<S> execution)
      Executes the command with the given execution context.
      Parameters:
      execution - execution context
      Returns:
      command result