Enum Class SettingText

java.lang.Object
java.lang.Enum<SettingText>
net.flectone.pulse.constant.SettingText
All Implemented Interfaces:
Serializable, Comparable<SettingText>, Constable

public enum SettingText extends Enum<SettingText>
The per-player settings stored as text, such as the chosen locale or chat.
  • Enum Constant Details

    • CHAT_NAME

      public static final SettingText CHAT_NAME
    • LOCALE

      public static final SettingText LOCALE
    • WORLD_PREFIX

      public static final SettingText WORLD_PREFIX
    • STREAM_PREFIX

      public static final SettingText STREAM_PREFIX
    • SERVER

      public static final SettingText SERVER
    • SPY_STATUS

      public static final SettingText SPY_STATUS
    • VANISH_STATUS

      public static final SettingText VANISH_STATUS
    • AFK_SUFFIX

      public static final SettingText AFK_SUFFIX
    • NICKNAME

      public static final SettingText NICKNAME
    • CONSTANT

      public static final SettingText CONSTANT
  • Method Details

    • values

      public static SettingText[] 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 SettingText 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
    • fromString

      public static @Nullable SettingText fromString(String string)
      Maps a stored setting name back to its constant, ignoring case.
      Parameters:
      string - the stored name
      Returns:
      the matching setting, or null if the name is unknown or empty