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.
Interface containing the method directing how a certain command will
be executed.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(CommandContext context) 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
-