Package top.focess.qq.api.command
Interface CommandExecutor
-
- All Superinterfaces:
top.focess.command.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 extends top.focess.command.CommandExecutor
Represents a command executor to define how to execute command.This is a functional interface whose functional method is
execute(CommandSender, DataCollection, IOHandler).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull top.focess.command.CommandResultexecute(top.focess.command.CommandSender commandSender, top.focess.command.DataCollection dataCollection, top.focess.command.IOHandler ioHandler)@NotNull top.focess.command.CommandResultexecute(CommandSender sender, top.focess.command.DataCollection dataCollection, IOHandler ioHandler)Used to execute the command under certain conditions
-
-
-
Method Detail
-
execute
@NotNull @NotNull top.focess.command.CommandResult execute(CommandSender sender, top.focess.command.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
-
execute
@NotNull default @NotNull top.focess.command.CommandResult execute(top.focess.command.CommandSender commandSender, top.focess.command.DataCollection dataCollection, @NotNull top.focess.command.IOHandler ioHandler)- Specified by:
executein interfacetop.focess.command.CommandExecutor
-
-