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

Method getByChar

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

Gets the color represented by the specified color code @param code Code to check @return Associative org.bukkit.ChatColor with the given code, or null if it doesn't exist

(char code)

Source from the content-addressed store, hash-verified

306 * or null if it doesn't exist
307 */
308 @Nullable
309 public static ChatColor getByChar(char code) {
310 return BY_CHAR.get(code);
311 }
312
313 /**
314 * Gets the color represented by the specified color code

Callers 7

getByCharMethod · 0.95
getByStringWithNullMethod · 0.95
getByStringWithEmptyMethod · 0.95
getByStringMethod · 0.95
getLastColorsMethod · 0.95
wordWrapMethod · 0.95
getColorMethod · 0.95

Calls 2

getMethod · 0.65
lengthMethod · 0.45

Tested by 4

getByCharMethod · 0.76
getByStringWithNullMethod · 0.76
getByStringWithEmptyMethod · 0.76
getByStringMethod · 0.76