Class CustomCommandExecutor<T extends org.bukkit.command.CommandSender>

java.lang.Object
dev.jorel.commandapi.CustomCommandExecutor<T>
Type Parameters:
T - a command sender

public class CustomCommandExecutor<T extends org.bukkit.command.CommandSender> extends Object
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 Details

    • CustomCommandExecutor

      public CustomCommandExecutor()
  • Method Details

    • addNormalExecutor

      public <S extends IExecutorNormal<?>> void addNormalExecutor(S executor)
    • addResultingExecutor

      public <S extends IExecutorResulting<?>> void addResultingExecutor(S executor)
    • execute

      public int execute(org.bukkit.command.CommandSender sender, Object[] arguments) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getNormalExecutors

      public List<IExecutorNormal<T>> getNormalExecutors()
    • getResultingExecutors

      public List<IExecutorResulting<T>> getResultingExecutors()
    • hasAnyExecutors

      public boolean hasAnyExecutors()
    • isForceNative

      public boolean isForceNative()
    • setNormalExecutors

      public void setNormalExecutors(List<IExecutorNormal<T>> normalExecutors)
    • setResultingExecutors

      public void setResultingExecutors(List<IExecutorResulting<T>> resultingExecutors)