Enum Class TextPlaceholder.Kind

java.lang.Object
java.lang.Enum<TextPlaceholder.Kind>
com.kamikazejam.kamicommon.nms.text.TextPlaceholder.Kind
All Implemented Interfaces:
Serializable, Comparable<TextPlaceholder.Kind>, Constable
Enclosing class:
TextPlaceholder

public static enum TextPlaceholder.Kind extends Enum<TextPlaceholder.Kind>
Which of the three forms a placeholder carries.
  • Enum Constant Details

    • LITERAL

      public static final TextPlaceholder.Kind LITERAL
      The value is inserted literally; any MiniMessage syntax in it is not parsed.
    • MINI_MESSAGE

      public static final TextPlaceholder.Kind MINI_MESSAGE
      The value is parsed as MiniMessage before insertion.
    • COMPONENT

      public static final TextPlaceholder.Kind COMPONENT
      The value is an already-built component.
  • Method Details

    • values

      public static TextPlaceholder.Kind[] 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

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