Package org.spongepowered.api.command
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandResult
execute(CommandContext context)
Callback for the execution of a command.
-
-
-
Method Detail
-
execute
CommandResult execute(CommandContext context) throws CommandException
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
-
-