Enum Class ChatColors

java.lang.Object
java.lang.Enum<ChatColors>
net.guizhanss.guizhanlib.minecraft.ChatColors
All Implemented Interfaces:
Serializable, Comparable<ChatColors>, Constable

public enum ChatColors extends Enum<ChatColors>
聊天颜色
Author:
ybw0014
See Also:
  • Enum Constant Details

    • AQUA

      public static final ChatColors AQUA
      天蓝色
    • BLACK

      public static final ChatColors BLACK
      黑色
    • BLUE

      public static final ChatColors BLUE
      蓝色
    • BOLD

      public static final ChatColors BOLD
      加粗
    • DARK_AQUA

      public static final ChatColors DARK_AQUA
      湖蓝色
    • DARK_BLUE

      public static final ChatColors DARK_BLUE
      深蓝色
    • DARK_GRAY

      public static final ChatColors DARK_GRAY
      深灰色
    • DARK_GREEN

      public static final ChatColors DARK_GREEN
      深绿色
    • DARK_PURPLE

      public static final ChatColors DARK_PURPLE
      紫色
    • DARK_RED

      public static final ChatColors DARK_RED
      深红色
    • GOLD

      public static final ChatColors GOLD
      金色
    • GRAY

      public static final ChatColors GRAY
      灰色
    • GREEN

      public static final ChatColors GREEN
      绿色
    • ITALIC

      public static final ChatColors ITALIC
      斜体
    • LIGHT_PURPLE

      public static final ChatColors LIGHT_PURPLE
      粉红色
    • MAGIC

      public static final ChatColors MAGIC
      随机
    • RED

      public static final ChatColors RED
      红色
    • RESET

      public static final ChatColors RESET
      重置
    • STRIKETHROUGH

      public static final ChatColors STRIKETHROUGH
      删除线
    • UNDERLINE

      public static final ChatColors UNDERLINE
      下划线
    • WHITE

      public static final ChatColors WHITE
      白色
    • YELLOW

      public static final ChatColors YELLOW
      黄色
  • Field Details

  • Method Details

    • values

      public static ChatColors[] 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 ChatColors 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
    • fromChatColor

      @Nonnull public static ChatColors fromChatColor(@Nonnull ChatColor chatColor)
      根据聊天颜色返回对应的枚举
      Parameters:
      chatColor - ChatColor 聊天颜色
      Returns:
      对应的枚举
    • toString

      public String toString()
      获取中文名称
      Overrides:
      toString in class Enum<ChatColors>
      Returns:
      中文名称
    • toStringWithColor

      public String toStringWithColor()
      获取带颜色代码的颜色名
      Returns:
      带颜色代码的颜色名