Package dev.jorel.commandapi.executors
Enum Class ExecutorType
- All Implemented Interfaces:
Serializable,Comparable<ExecutorType>,Constable
An enum representing the type of an executor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn executor where the CommandSender is any CommandSenderAn executor where the CommandSender is a BlockCommandSenderAn executor where the CommandSender is a ConsoleCommandSenderAn executor where the CommandSender is an EntityAn executor where the CommandSender is (always) a NativeProxyCommandSenderAn executor where the CommandSender is a PlayerAn executor where the CommandSender is a NativeProxyCommandSender -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorTypeReturns the enum constant of this class with the specified name.static ExecutorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
An executor where the CommandSender is a Player -
ENTITY
An executor where the CommandSender is an Entity -
CONSOLE
An executor where the CommandSender is a ConsoleCommandSender -
BLOCK
An executor where the CommandSender is a BlockCommandSender -
ALL
An executor where the CommandSender is any CommandSender -
PROXY
An executor where the CommandSender is a NativeProxyCommandSender -
NATIVE
An executor where the CommandSender is (always) a NativeProxyCommandSender
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-