Class ChatColor Constructor.
The color code as a string.
Optional
color: numberThe color code as a hexadecimal number. Can be undefined.
Static
Readonly
ALL_All available color codes excluding the formatting codes.
Static
Readonly
AQUAAqua color code. (b)
Static
Readonly
BLACKBlack color code. (0)
Static
Readonly
BLUEBlue color code. (9)
Static
Readonly
BOLDBold color code. (l)
Static
Readonly
DARK_Dark aqua color code. (3)
Static
Readonly
DARK_Dark blue color code. (1)
Static
Readonly
DARK_Dark gray color code. (8)
Static
Readonly
DARK_Dark green color code. (2)
Static
Readonly
DARK_Dark purple color code. (5)
Static
Readonly
DARK_Dark red color code. (4)
Static
Readonly
GOLDGold color code. (6)
Static
Readonly
GRAYGray color code. (7)
Static
Readonly
GREENGreen color code. (a)
Static
Readonly
ITALICItalic color code. (o)
Static
Readonly
LIGHT_Light purple color code. (d)
Static
Readonly
MATERIAL_Material amethyst color code. (u)
Static
Readonly
MATERIAL_Material copper color code. (n)
Static
Readonly
MATERIAL_Material diamond color code. (s)
Static
Readonly
MATERIAL_Material emerald color code. (q)
Static
Readonly
MATERIAL_Material gold color code. (p)
Static
Readonly
MATERIAL_Material iron color code. (i)
Static
Readonly
MATERIAL_Material lapis color code. (t)
Static
Readonly
MATERIAL_Material netherite color code. (j)
Static
Readonly
MATERIAL_Material quartz color code. (h)
Static
Readonly
MATERIAL_Material redstone color code. (m)
Static
Readonly
MINECOIN_MineCoin gold color code. (g)
Static
Readonly
OBFUSCATEDObfuscated color code. (k)
Static
Readonly
REDRed color code. (c)
Static
Readonly
RESETReset color code. (r)
Static
Readonly
VALUESAll available color codes.
Static
Readonly
WHITEWhite color code. (f)
Static
Readonly
YELLOWYellow color code. (e)
Retrieves the blue value of a color.
The blue value of the color.
Retrieves the format code associated with the chat color.
The format code of the chat color.
Retrieves the green value of the current color.
The green value of the color, or undefined if it is not set.
Retrieve the value of the red component.
The value of the red component, or undefined if it is not set.
Returns the hexadecimal string representation of the color code
The hexadecimal representation of the color.
Returns the color code of the ChatColor instance.
The color code of this ChatColor instance.
Returns the string representation of the ChatColor instance, which includes the PREFIX followed by the color code.
A string representing the ChatColor instance
Static
findFinds the closest ChatColor code for the given RGB values
Red part of the color.
Green part of the color.
Blue part of the color.
The closest ChatColor for the given RGB values.
Static
stripRemoves color codes from the specified string
The string from which color codes will be removed.
The string cleared from color codes.
ChatColor is a class for defining color codes.