MCPcopy Create free account
hub / github.com/PaperMC/Paper / ChatColor

Enum ChatColor

paper-api/src/main/java/org/bukkit/ChatColor.java:15–459  ·  view source on GitHub ↗

All supported color values for chat @deprecated ChatColor has been deprecated in favor of Adventure API. See net.kyori.adventure.text.format.NamedTextColor for the adventure equivalent of pre-defined text colors

Source from the content-addressed store, hash-verified

13 * @deprecated ChatColor has been deprecated in favor of <a href="https://docs.advntr.dev/text.html">Adventure</a> API. See {@link net.kyori.adventure.text.format.NamedTextColor} for the adventure equivalent of pre-defined text colors
14 */
15@Deprecated // Paper
16public enum ChatColor {
17 /**
18 * Represents black
19 */
20 BLACK('0', 0x00) {
21 @NotNull
22 @Override
23 public net.md_5.bungee.api.ChatColor asBungee() {
24 return net.md_5.bungee.api.ChatColor.BLACK;
25 }
26 },
27 /**
28 * Represents dark blue
29 */
30 DARK_BLUE('1', 0x1) {
31 @NotNull
32 @Override
33 public net.md_5.bungee.api.ChatColor asBungee() {
34 return net.md_5.bungee.api.ChatColor.DARK_BLUE;
35 }
36 },
37 /**
38 * Represents dark green
39 */
40 DARK_GREEN('2', 0x2) {
41 @NotNull
42 @Override
43 public net.md_5.bungee.api.ChatColor asBungee() {
44 return net.md_5.bungee.api.ChatColor.DARK_GREEN;
45 }
46 },
47 /**
48 * Represents dark blue (aqua)
49 */
50 DARK_AQUA('3', 0x3) {
51 @NotNull
52 @Override
53 public net.md_5.bungee.api.ChatColor asBungee() {
54 return net.md_5.bungee.api.ChatColor.DARK_AQUA;
55 }
56 },
57 /**
58 * Represents dark red
59 */
60 DARK_RED('4', 0x4) {
61 @NotNull
62 @Override
63 public net.md_5.bungee.api.ChatColor asBungee() {
64 return net.md_5.bungee.api.ChatColor.DARK_RED;
65 }
66 },
67 /**
68 * Represents dark purple
69 */
70 DARK_PURPLE('5', 0x5) {
71 @NotNull
72 @Override

Callers

nothing calls this directly

Calls 4

newHashMapMethod · 0.80
valueOfMethod · 0.65
valuesMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected