Package dev.jorel.commandapi
Class CommandAPIExecutor<CommandSender,WrapperType extends AbstractCommandSender<? extends CommandSender>>
java.lang.Object
dev.jorel.commandapi.CommandAPIExecutor<CommandSender,WrapperType>
- Type Parameters:
CommandSender- The CommandSender for this executorWrapperType- The AbstractCommandSender that wraps the CommandSender
public class CommandAPIExecutor<CommandSender,WrapperType extends AbstractCommandSender<? extends CommandSender>>
extends Object
CommandAPIExecutor is the main executor implementation for command
executors. It contains a list of all executors (normal and resulting
executors) and switches its execution implementation based on the provided
command executor types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNormalExecutor(NormalExecutor<?, ?> executor) voidaddResultingExecutor(ResultingExecutor<?, ?> executor) intbooleanbooleanvoidsetNormalExecutors(List<NormalExecutor<CommandSender, WrapperType>> normalExecutors) voidsetResultingExecutors(List<ResultingExecutor<CommandSender, WrapperType>> resultingExecutors)
-
Constructor Details
-
CommandAPIExecutor
public CommandAPIExecutor()
-
-
Method Details
-
addNormalExecutor
-
addResultingExecutor
-
execute
public int execute(ExecutionInfo<CommandSender, WrapperType> info) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNormalExecutors
-
getResultingExecutors
-
hasAnyExecutors
public boolean hasAnyExecutors() -
isForceNative
public boolean isForceNative() -
setNormalExecutors
-
setResultingExecutors
public void setResultingExecutors(List<ResultingExecutor<CommandSender, WrapperType>> resultingExecutors)
-