Package dev.jorel.commandapi.executors
Interface IExecutorTyped
- All Known Subinterfaces:
CommandBlockCommandExecutor,CommandBlockResultingCommandExecutor,CommandExecutor,ConsoleCommandExecutor,ConsoleResultingCommandExecutor,EntityCommandExecutor,EntityResultingCommandExecutor,IExecutorNormal<T>,IExecutorResulting<T>,NativeCommandExecutor,NativeResultingCommandExecutor,PlayerCommandExecutor,PlayerResultingCommandExecutor,ProxyCommandExecutor,ProxyResultingCommandExecutor,ResultingCommandExecutor
public interface IExecutorTyped
An interface that includes the type of an executor (what command senders it
can execute) and has a method that executes an executor with a given command
sender and arguments
-
Method Summary
Modifier and TypeMethodDescriptionintexecuteWith(org.bukkit.command.CommandSender sender, Object[] args) Executes the command executor with the provided command sender and the provided arguments.default ExecutorTypegetType()Returns the type of the sender of the current executor.
-
Method Details
-
getType
Returns the type of the sender of the current executor.- Returns:
- the type of the sender of the current executor
-
executeWith
int executeWith(org.bukkit.command.CommandSender sender, Object[] args) throws WrapperCommandSyntaxException Executes the command executor with the provided command sender and the provided arguments.- Parameters:
sender- the command sender for this commandargs- the arguments provided to this command- Returns:
- the value returned by this command if the command succeeds, 0 if the command fails
- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-