Enum JSONOptions.ClickEventValueMode

java.lang.Object
java.lang.Enum<JSONOptions.ClickEventValueMode>
net.kyori.adventure.text.serializer.json.JSONOptions.ClickEventValueMode
All Implemented Interfaces:
Serializable, Comparable<JSONOptions.ClickEventValueMode>
Enclosing class:
JSONOptions

public static enum JSONOptions.ClickEventValueMode extends Enum<JSONOptions.ClickEventValueMode>
Configure how to emit click event values.
Since:
4.20.0
  • Enum Constant Details

    • SNAKE_CASE

      public static final JSONOptions.ClickEventValueMode SNAKE_CASE
      Only emit the 1.21.5+ click events using the click_event field.
      Since:
      4.20.0
    • CAMEL_CASE

      public static final JSONOptions.ClickEventValueMode CAMEL_CASE
      Only emit the pre-1.21.5 click events using the clickEvent field.
      Since:
      4.20.0
    • BOTH

      public static final JSONOptions.ClickEventValueMode BOTH
      Include both camel and snake case click event fields, for maximum compatibility.
      Since:
      4.20.0
  • Method Details

    • values

      public static JSONOptions.ClickEventValueMode[] 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

      public static JSONOptions.ClickEventValueMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null