MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / chatToHex

Method chatToHex

src/main/java/com/volmit/adapt/util/C.java:395–402  ·  view source on GitHub ↗
(ChatColor clr)

Source from the content-addressed store, hash-verified

393 }
394
395 @SuppressWarnings("unlikely-arg-type")
396 public static String chatToHex(ChatColor clr) {
397 if (chatHexMap.containsKey(clr)) {
398 return chatHexMap.get(clr);
399 }
400
401 return "#000";
402 }
403
404 public static String dyeToHex(DyeColor clr) {
405 if (dyeHexMap.containsKey(clr)) {

Callers 1

hexMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected