Package dev.jorel.commandapi
Interface VelocityExecutable<Impl extends VelocityExecutable<Impl>>
- All Superinterfaces:
ChainableBuilder<Impl>,PlatformExecutable<Impl,com.velocitypowered.api.command.CommandSource>
- All Known Implementing Classes:
Argument,BooleanArgument,CommandAPICommand,CommandTree,DoubleArgument,FloatArgument,GreedyStringArgument,IntegerArgument,LiteralArgument,LongArgument,MultiLiteralArgument,SafeOverrideableArgument,StringArgument,TextArgument
public interface VelocityExecutable<Impl extends VelocityExecutable<Impl>>
extends PlatformExecutable<Impl,com.velocitypowered.api.command.CommandSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Implexecutes(CommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Implexecutes(CommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Implexecutes(ResultingCommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Implexecutes(ResultingCommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault ImplexecutesConsole(ConsoleCommandExecutor executor) Adds an executor to the current command builderdefault ImplexecutesConsole(ConsoleExecutionInfo executor) Adds an executor to the current command builderdefault ImplAdds an executor to the current command builderdefault ImplexecutesConsole(ConsoleResultingExecutionInfo executor) Adds an executor to the current command builderdefault ImplexecutesPlayer(PlayerCommandExecutor executor) Adds an executor to the current command builderdefault ImplexecutesPlayer(PlayerExecutionInfo executor) Adds an executor to the current command builderdefault ImplexecutesPlayer(PlayerResultingCommandExecutor executor) Adds an executor to the current command builderdefault ImplexecutesPlayer(PlayerResultingExecutionInfo executor) Adds an executor to the current command builderMethods inherited from interface dev.jorel.commandapi.ChainableBuilder
instanceMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutor
-
Method Details
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(CommandSource, Object[]) -> ()that will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ExecutionInfo<CommandSender, BukkitCommandSender<? extends CommandSender>>) -> ()that will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(CommandSource, Object[]) -> intthat will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executes
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ExecutionInfo<CommandSender, VelocityCommandSender<? extends CommandSender>>) -> ()that will be executed when the command is runtypes- A list of executor types to use this executes method for.- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Player, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(Player, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesPlayer
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ConsoleCommandSource, CommandArguments) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ExecutionInfo) -> ()that will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ConsoleCommandSource, CommandArguments) -> intthat will be executed when the command is run- Returns:
- this command builder
-
executesConsole
Adds an executor to the current command builder- Parameters:
executor- A lambda of type(ExecutionInfo) -> intthat will be executed when the command is run- Returns:
- this command builder
-