Enum JSONOptions.ShowItemHoverDataMode
java.lang.Object
java.lang.Enum<JSONOptions.ShowItemHoverDataMode>
net.kyori.adventure.text.serializer.json.JSONOptions.ShowItemHoverDataMode
- All Implemented Interfaces:
Serializable
,Comparable<JSONOptions.ShowItemHoverDataMode>
- Enclosing class:
- JSONOptions
public static enum JSONOptions.ShowItemHoverDataMode
extends Enum<JSONOptions.ShowItemHoverDataMode>
Configure how to emit show_item hovers.
- Since:
- 4.17.0
-
Enum Constant Summary
Enum ConstantDescriptionOnly emit modern data components.Emit whichever of legacy or modern data the item has.Only emit the pre-1.20.5 item nbt. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static JSONOptions.ShowItemHoverDataMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EMIT_LEGACY_NBT
Only emit the pre-1.20.5 item nbt.- Since:
- 4.17.0
-
EMIT_DATA_COMPONENTS
Only emit modern data components.- Since:
- 4.17.0
-
EMIT_EITHER
Emit whichever of legacy or modern data the item has.- Since:
- 4.17.0
-
-
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
-