Class ChatColor Constructor.
The color code as a string.
Optionalcolor: numberThe color code as a hexadecimal number. Can be undefined.
Static ReadonlyALL_All available color codes excluding the formatting codes.
Static ReadonlyAQUAAqua color code. (b)
Static ReadonlyBLACKBlack color code. (0)
Static ReadonlyBLUEBlue color code. (9)
Static ReadonlyBOLDBold color code. (l)
Static ReadonlyDARK_Dark aqua color code. (3)
Static ReadonlyDARK_Dark blue color code. (1)
Static ReadonlyDARK_Dark gray color code. (8)
Static ReadonlyDARK_Dark green color code. (2)
Static ReadonlyDARK_Dark purple color code. (5)
Static ReadonlyDARK_Dark red color code. (4)
Static ReadonlyGOLDGold color code. (6)
Static ReadonlyGRAYGray color code. (7)
Static ReadonlyGREENGreen color code. (a)
Static ReadonlyITALICItalic color code. (o)
Static ReadonlyLIGHT_Light purple color code. (d)
Static ReadonlyMATERIAL_Material amethyst color code. (u)
Static ReadonlyMATERIAL_Material copper color code. (n)
Static ReadonlyMATERIAL_Material diamond color code. (s)
Static ReadonlyMATERIAL_Material emerald color code. (q)
Static ReadonlyMATERIAL_Material gold color code. (p)
Static ReadonlyMATERIAL_Material iron color code. (i)
Static ReadonlyMATERIAL_Material lapis color code. (t)
Static ReadonlyMATERIAL_Material netherite color code. (j)
Static ReadonlyMATERIAL_Material quartz color code. (h)
Static ReadonlyMATERIAL_Material redstone color code. (m)
Static ReadonlyMINECOIN_MineCoin gold color code. (g)
Static ReadonlyOBFUSCATEDObfuscated color code. (k)
Static ReadonlyREDRed color code. (c)
Static ReadonlyRESETReset color code. (r)
Static ReadonlyVALUESAll available color codes.
Static ReadonlyWHITEWhite color code. (f)
Static ReadonlyYELLOWYellow 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
StaticfindFinds 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.
StaticstripRemoves 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.