MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getColorString

Method getColorString

src/main/java/Colors/ColorTheme.java:359–367  ·  view source on GitHub ↗
(int color)

Source from the content-addressed store, hash-verified

357 }
358
359 public static String getColorString(int color) {
360 StringBuffer ncolor=new StringBuffer();
361 ncolor.append("0x");
362 String col=Integer.toHexString(color);
363 for (int i=0; i<6-col.length(); i++)
364 ncolor.append("0");
365 ncolor.append(col);
366 return ncolor.toString();
367 }
368
369 public static int getRed(int color) {
370 return ((color >> 16) & 0xFF);

Callers 2

getSkinMethod · 0.95
getColorIntMethod · 0.95

Calls 2

appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected