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
  • 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
  • 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