Enum JSONOptions.ShadowColorEmitMode
java.lang.Object
java.lang.Enum<JSONOptions.ShadowColorEmitMode>
net.kyori.adventure.text.serializer.json.JSONOptions.ShadowColorEmitMode
- All Implemented Interfaces:
Serializable,Comparable<JSONOptions.ShadowColorEmitMode>
- Enclosing class:
- JSONOptions
How text shadow colors should be emitted.
- Since:
- 4.18.0
- Since Minecraft:
- 1.21.4
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEmit a colour as 4-element float array of the RGBA components of the colour.Emit as a single packed integer value containing, in order, ARGB bytes.Do not emit shadow colours. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static JSONOptions.ShadowColorEmitMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Do not emit shadow colours. -
EMIT_INTEGER
Emit as a single packed integer value containing, in order, ARGB bytes.- Since:
- 4.18.0
-
EMIT_ARRAY
Emit a colour as 4-element float array of the RGBA components of the colour.- Since:
- 4.18.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
-