Interface NormalExecutor<CommandSender, WrapperType extends AbstractCommandSender<? extends CommandSender>>
- Type Parameters:
CommandSender- The CommandSender for this executorWrapperType- The AbstractCommandSender that wraps the CommandSender
- All Superinterfaces:
TypedExecutor<CommandSender, WrapperType>
public interface NormalExecutor<CommandSender, WrapperType extends AbstractCommandSender<? extends CommandSender>>
extends TypedExecutor<CommandSender, WrapperType>
The interface for normal command executors
-
Method Summary
Modifier and TypeMethodDescriptiondefault intExecutes the command executor with the provided command sender and the provided arguments.voidrun(ExecutionInfo<CommandSender, WrapperType> info) Executes the command.Methods inherited from interface TypedExecutor
getTypeModifier and TypeMethodDescriptiondefault ExecutorTypegetType()Returns the type of the sender of the current executor.
-
Method Details
-
executeWith
default int executeWith(ExecutionInfo<CommandSender, WrapperType> info) throws WrapperCommandSyntaxException Executes the command executor with the provided command sender and the provided arguments.- Specified by:
executeWithin interfaceTypedExecutor<CommandSender, WrapperType extends AbstractCommandSender<? extends CommandSender>>- Parameters:
info- The ExecutionInfo for this command- Returns:
- 1 if the command succeeds, 0 if the command fails
- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-
run
Executes the command.- Parameters:
info- The ExecutionInfo for this command- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-