MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / drawString

Method drawString

src/main/java/Fonts/FontCache.java:108–116  ·  view source on GitHub ↗
(Graphics g, String text, int x, int y, int anchor)

Source from the content-addressed store, hash-verified

106 }
107
108 public static void drawString(Graphics g, String text, int x, int y, int anchor) {
109 if (Config.getInstance().shadowed) {
110 int color = g.getColor();
111 g.setColor((color) / 3 > 0x7f ? 0x333333 : 0xcccccc);
112 g.drawString(text, x + 1, y + 1, anchor);
113 g.setColor(color);
114 }
115 g.drawString(text, x, y, anchor);
116 }
117
118 //public final static void resetCache() { roster=msg=bar=baloon=0; }
119}

Callers 15

drawMethod · 0.95
drawItemMethod · 0.95
drawItemMethod · 0.95
drawItemMethod · 0.95
drawMethod · 0.95
drawAllStringsMethod · 0.95
drawItemMethod · 0.95
drawItemMethod · 0.95
drawItemMethod · 0.95
drawItemMethod · 0.95
drawItemMethod · 0.95
drawCenterCommandMethod · 0.95

Calls 3

getInstanceMethod · 0.95
getColorMethod · 0.65
setColorMethod · 0.45

Tested by

no test coverage detected