Package org.incendo.cloud.setting
Enum ManagerSetting
- All Implemented Interfaces:
Serializable,Comparable<ManagerSetting>,Setting
Configurable command related settings
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow registering commands even when doing so has the potential to produce inconsistent results.Force sending of an empty suggestion (i.e.Allows parsing flags at any position after the last literal by appending flag argument nodes between each command node.Enables overriding of existing commands on supported platforms. -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagerSettingReturns the enum constant of this type with the specified name.static ManagerSetting[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORCE_SUGGESTION
Force sending of an empty suggestion (i.e. a singleton list containing an empty string) when no suggestions are present -
ALLOW_UNSAFE_REGISTRATION
Allow registering commands even when doing so has the potential to produce inconsistent results.For example, if a platform serializes the command tree and sends it to clients, this will allow modifying the command tree after it has been sent, as long as these modifications are not blocked by the underlying platform
-
OVERRIDE_EXISTING_COMMANDS
Enables overriding of existing commands on supported platforms. -
LIBERAL_FLAG_PARSING
Allows parsing flags at any position after the last literal by appending flag argument nodes between each command node. It can have some conflicts when integrating with other command systems like Brigadier, and code inspecting the command tree may need to be adjusted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-