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

Method chatToDye

src/main/java/com/volmit/adapt/util/C.java:385–393  ·  view source on GitHub ↗
(ChatColor color)

Source from the content-addressed store, hash-verified

383 }
384
385 public static DyeColor chatToDye(ChatColor color) {
386 for (DyeColor i : dyeChatMap.keySet()) {
387 if (dyeChatMap.get(i).toString().equals(color.toString())) {
388 return i;
389 }
390 }
391
392 return DyeColor.BLACK;
393 }
394
395 @SuppressWarnings("unlikely-arg-type")
396 public static String chatToHex(ChatColor clr) {

Callers 1

dyeMethod · 0.95

Calls 4

keySetMethod · 0.80
getMethod · 0.65
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected