Enum Class CoreCommandMessages
- All Implemented Interfaces:
Serializable,Comparable<CoreCommandMessages>,Constable,CommandMessageKey
The complete set of customizable message keys raised by the framework's built-in
argument resolvers. Reference these constants from a
CommandMessageSource to
override the corresponding messages.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRaised when a boolean argument cannot be parsed.Raised when an enum argument does not match any constant.Raised when a numeric argument cannot be parsed.Raised when a UUID argument cannot be parsed. -
Method Summary
Modifier and TypeMethodDescriptionid()static CoreCommandMessagesReturns the enum constant of this class with the specified name.static CoreCommandMessages[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN_INVALID
Raised when a boolean argument cannot be parsed. Placeholders:{input}. -
NUMBER_INVALID
Raised when a numeric argument cannot be parsed. Placeholders:{input}. -
ENUM_INVALID
Raised when an enum argument does not match any constant. Placeholders:{input},{options}. -
UUID_INVALID
Raised when a UUID argument cannot be parsed. Placeholders:{input}.
-
-
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
-
id
- Specified by:
idin interfaceCommandMessageKey- Returns:
- the stable identifier of this key, for example
"player.not-found"
-
defaultTemplate
- Specified by:
defaultTemplatein interfaceCommandMessageKey- Returns:
- the fallback message template used when no
CommandMessageSourceoverrides this key; may contain{placeholder}tokens
-
placeholders
- Specified by:
placeholdersin interfaceCommandMessageKey- Returns:
- the documented placeholder names this key's template understands
-