Enum Class Capability
- All Implemented Interfaces:
Serializable
,Comparable<Capability>
,Constable
A collection of capabilities that a
Platform
may support.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe capability of providing configuration.The capability of registering game hooks to catch events such as a player clicking a block.The capability of a platform to assess whether a givenActor
has sufficient authorization to perform a task.The capability of handling user commands entered in chat or console.The capability of a platform to perform modifications to a world.The capability of a platform to dispatch WorldEditCUI events. -
Method Summary
Modifier and TypeMethodDescriptionstatic Capability
Returns the enum constant of this class with the specified name.static Capability[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAME_HOOKS
The capability of registering game hooks to catch events such as a player clicking a block. -
CONFIGURATION
The capability of providing configuration. -
USER_COMMANDS
The capability of handling user commands entered in chat or console. -
PERMISSIONS
The capability of a platform to assess whether a givenActor
has sufficient authorization to perform a task. -
WORLDEDIT_CUI
The capability of a platform to dispatch WorldEditCUI events. -
WORLD_EDITING
The capability of a platform to perform modifications to a world.
-
-
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
-