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
Callback executed once a syntax has been found for a
Command
.
Warning: it could be the default executor from Command.getDefaultExecutor()
if not null.
-
Method Summary
Modifier and Type Method Description void
apply(CommandSender sender, Arguments args)
Executes the command callback once the syntax has been called (or the default executor).
-
Method Details
-
apply
Executes the command callback once the syntax has been called (or the default executor).- Parameters:
sender
- the sender of the commandargs
- contains all the parsed arguments, the id is the one initialized when creating the argument object
-