Enum Class ExecutableBy
- All Implemented Interfaces:
Serializable, Comparable<ExecutableBy>, Constable
Enum describing the types of
CommandSenders that can execute this command.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSuperSet(Set<ExecutableBy> first, Set<ExecutableBy> second) Compares whether a set ofExecutableBys is a superset of another.Predicate<org.bukkit.command.CommandSender> toString()static ExecutableByReturns the enum constant of this class with the specified name.static ExecutableBy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYERS
This command is only executable by players. -
OPERATORS
This command is only executable by operators. -
CONSOLE
This command is only executable by console. -
BLOCKS
This command is only executable by blocks (e.g, command blocks).
-
-
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
-
predicate
- Returns:
- A predicate to validate the behavior expected by this restriction.
-
toString
- Overrides:
toStringin classEnum<ExecutableBy>
-
isSuperSet
Compares whether a set ofExecutableBys is a superset of another.- Parameters:
first- The first set.second- The second set.- Returns:
- Whether the first set includes all
CommandSenders covered by the second.
-