Enum Class ExecutorType

java.lang.Object
java.lang.Enum<ExecutorType>
dev.jorel.commandapi.executors.ExecutorType
All Implemented Interfaces:
Serializable, Comparable<ExecutorType>, Constable

public enum ExecutorType extends Enum<ExecutorType>
An enum representing the type of an executor
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An executor where the CommandSender is any CommandSender
    An executor where the CommandSender is a BlockCommandSender
    An executor where the CommandSender is a ConsoleCommandSender
    An executor where the CommandSender is an Entity
    An executor where the CommandSender is a io.papermc.paper.commands.FeedbackForwardingSender
    An executor where the CommandSender is (always) a NativeProxyCommandSender
    An executor where the CommandSender is a Player
    An executor where the CommandSender is a NativeProxyCommandSender
    An executor where the CommandSender is a RemoteConsoleCommandSender
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static ExecutorType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PLAYER

      public static final ExecutorType PLAYER
      An executor where the CommandSender is a Player
    • ENTITY

      public static final ExecutorType ENTITY
      An executor where the CommandSender is an Entity
    • CONSOLE

      public static final ExecutorType CONSOLE
      An executor where the CommandSender is a ConsoleCommandSender
    • BLOCK

      public static final ExecutorType BLOCK
      An executor where the CommandSender is a BlockCommandSender
    • ALL

      public static final ExecutorType ALL
      An executor where the CommandSender is any CommandSender
    • PROXY

      public static final ExecutorType PROXY
      An executor where the CommandSender is a NativeProxyCommandSender
    • NATIVE

      public static final ExecutorType NATIVE
      An executor where the CommandSender is (always) a NativeProxyCommandSender
    • REMOTE

      public static final ExecutorType REMOTE
      An executor where the CommandSender is a RemoteConsoleCommandSender
    • FEEDBACK_FORWARDING

      public static final ExecutorType FEEDBACK_FORWARDING
      An executor where the CommandSender is a io.papermc.paper.commands.FeedbackForwardingSender
  • Method Details

    • values

      public static ExecutorType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExecutorType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null