# Uses of Class
net.md_5.bungee.api.ChatColor

Packages that use ChatColor
Package
Description
net.md_5.bungee.api
net.md_5.bungee.api.chat

- ## Uses of ChatColor in net.md_5.bungee.api

  Fields in net.md_5.bungee.api declared as ChatColor
  Modifier and Type
  Field
  Description
  `static final ChatColor`
  ChatColor.`AQUA`
  Represents aqua.
  `static final ChatColor`
  ChatColor.`BLACK`
  Represents black.
  `static final ChatColor`
  ChatColor.`BLUE`
  Represents blue.
  `static final ChatColor`
  ChatColor.`BOLD`
  Makes the text bold.
  `static final ChatColor`
  ChatColor.`DARK_AQUA`
  Represents dark blue (aqua).
  `static final ChatColor`
  ChatColor.`DARK_BLUE`
  Represents dark blue.
  `static final ChatColor`
  ChatColor.`DARK_GRAY`
  Represents dark gray.
  `static final ChatColor`
  ChatColor.`DARK_GREEN`
  Represents dark green.
  `static final ChatColor`
  ChatColor.`DARK_PURPLE`
  Represents dark purple.
  `static final ChatColor`
  ChatColor.`DARK_RED`
  Represents dark red.
  `static final ChatColor`
  ChatColor.`GOLD`
  Represents gold.
  `static final ChatColor`
  ChatColor.`GRAY`
  Represents gray.
  `static final ChatColor`
  ChatColor.`GREEN`
  Represents green.
  `static final ChatColor`
  ChatColor.`ITALIC`
  Makes the text italic.
  `static final ChatColor`
  ChatColor.`LIGHT_PURPLE`
  Represents light purple.
  `static final ChatColor`
  ChatColor.`MAGIC`
  Represents magical characters that change around randomly.
  `static final ChatColor`
  ChatColor.`RED`
  Represents red.
  `static final ChatColor`
  ChatColor.`RESET`
  Resets all previous chat colors or formats.
  `static final ChatColor`
  ChatColor.`STRIKETHROUGH`
  Makes a line appear through the text.
  `static final ChatColor`
  ChatColor.`UNDERLINE`
  Makes the text appear underlined.
  `static final ChatColor`
  ChatColor.`WHITE`
  Represents white.
  `static final ChatColor`
  ChatColor.`YELLOW`
  Represents yellow.
  Methods in net.md_5.bungee.api that return ChatColor
  Modifier and Type
  Method
  Description
  `static ChatColor`
  ChatColor.`getByChar(char code)`
  Get the colour represented by the specified code.
  `static ChatColor`
  ChatColor.`of(Color color)`
  `static ChatColor`
  ChatColor.`of(String string)`
  `static ChatColor`
  ChatColor.`valueOf(String name)`
  Deprecated.
  holdover from when this class was an enum
  `static ChatColor[]`
  ChatColor.`values()`
  Deprecated.
  holdover from when this class was an enum

- ## Uses of ChatColor in net.md_5.bungee.api.chat

  Methods in net.md_5.bungee.api.chat that return ChatColor
  Modifier and Type
  Method
  Description
  `ChatColor`
  BaseComponent.`getColor()`
  Returns the color of this component.
  `ChatColor`
  ComponentStyle.`getColor()`
  Returns the color of this style.
  `ChatColor`
  BaseComponent.`getColorRaw()`
  Returns the color of this component without checking the parents color.
  Methods in net.md_5.bungee.api.chat with parameters of type ChatColor
  Modifier and Type
  Method
  Description
  `ComponentBuilder`
  ComponentBuilder.`color(ChatColor color)`
  Sets the color of the current part.
  `ComponentStyleBuilder`
  ComponentStyleBuilder.`color(ChatColor color)`
  Set the style color.
  `static BaseComponent`
  TextComponent.`fromLegacy(String message, ChatColor defaultColor)`
  Converts the old formatting system that used `COLOR_CHAR` into the new json based system.
  `static BaseComponent[]`
  TextComponent.`fromLegacyText(String message, ChatColor defaultColor)`
  Deprecated.
  `TextComponent.fromLegacy(String, ChatColor)` is preferred as it will consolidate all components into a single BaseComponent with extra contents as opposed to an array of components which is non-standard and may result in unexpected behavior.
  `void`
  BaseComponent.`setColor(ChatColor color)`
  Set this component's color.
  `void`
  ComponentStyle.`setColor(ChatColor color)`
  The color of this style.
  Constructors in net.md_5.bungee.api.chat with parameters of type ChatColor
  Modifier
  Constructor
  Description
  ``
  `ComponentStyle(ChatColor color, Color shadowColor, String font, Boolean bold, Boolean italic, Boolean underlined, Boolean strikethrough, Boolean obfuscated)`
  Creates a new `ComponentStyle` instance.