Enum JSONOptions.HoverEventValueMode
java.lang.Object
java.lang.Enum<JSONOptions.HoverEventValueMode>
net.kyori.adventure.text.serializer.json.JSONOptions.HoverEventValueMode
- All Implemented Interfaces:
Serializable,Comparable<JSONOptions.HoverEventValueMode>
- Enclosing class:
- JSONOptions
Configure how to emit hover event values.
- Since:
- 4.15.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInclude all hover event fields, for maximum compatibility.Only emit the 1.16+ hover events using thehoverEventfield.Only emit the 1.21.5+ hover events using thehover_eventfield.Only emit the pre-1.16 hover eventvaluefield. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JSONOptions.HoverEventValueModeDeprecated.static final JSONOptions.HoverEventValueModeDeprecated.useVALUE_FIELDinsteadstatic final JSONOptions.HoverEventValueModeDeprecated.useCAMEL_CASEinstead -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static JSONOptions.HoverEventValueMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SNAKE_CASE
Only emit the 1.21.5+ hover events using thehover_eventfield.- Since:
- 4.20.0
-
CAMEL_CASE
Only emit the 1.16+ hover events using thehoverEventfield.- Since:
- 4.15.0
-
VALUE_FIELD
Only emit the pre-1.16 hover eventvaluefield.- Since:
- 4.15.0
-
ALL
Include all hover event fields, for maximum compatibility.- Since:
- 4.15.0
-
-
Field Details
-
MODERN_ONLY
Deprecated.useCAMEL_CASEinsteadOnly emit the 1.16+ hover events using thehoverEventfield. -
LEGACY_ONLY
Deprecated.useVALUE_FIELDinsteadOnly emit the pre-1.16 hover eventvaluefield. -
BOTH
Deprecated.useALLinsteadInclude all hover event fields, for maximum compatibility.
-
-
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
-
ALLinstead