Package top.focess.qq.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
Represents a command executor to define how to execute command. This is a functional interface whose functional method isexecute(CommandSender, DataCollection, IOHandler).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandResultexecute(CommandSender sender, DataCollection dataCollection, IOHandler ioHandler)Used to execute the command under certain conditions
-
-
-
Method Detail
-
execute
@NotNull CommandResult execute(CommandSender sender, DataCollection dataCollection, IOHandler ioHandler)
Used to execute the command under certain conditions- Parameters:
sender- the executor of the commanddataCollection- parse the arguments the command receivedioHandler- the receiver of the command- Returns:
- the result of this execution
-
-