Package dev.jorel.commandapi
Class CustomCommandExecutor<T extends org.bukkit.command.CommandSender>
java.lang.Object
dev.jorel.commandapi.CustomCommandExecutor<T>
- Type Parameters:
T- a command sender
CustomCommandExecutor 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 TypeMethodDescription<S extends IExecutorNormal<?>>
voidaddNormalExecutor(S executor) <S extends IExecutorResulting<?>>
voidaddResultingExecutor(S executor) intbooleanbooleanvoidsetNormalExecutors(List<IExecutorNormal<T>> normalExecutors) voidsetResultingExecutors(List<IExecutorResulting<T>> resultingExecutors)
-
Constructor Details
-
CustomCommandExecutor
public CustomCommandExecutor()
-
-
Method Details
-
addNormalExecutor
-
addResultingExecutor
-
execute
public int execute(org.bukkit.command.CommandSender sender, Object[] arguments) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNormalExecutors
-
getResultingExecutors
-
hasAnyExecutors
public boolean hasAnyExecutors() -
isForceNative
public boolean isForceNative() -
setNormalExecutors
-
setResultingExecutors
-