MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / draw

Method draw

Mod Utils/src/eu/the5zig/mod/gui/elements/CheckBox.java:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 }
27
28 public void draw() {
29 MinecraftFactory.getVars().drawString(MinecraftFactory.getVars().shortenToWidth(string, width - 14), x + 14, y + 1);
30 Gui.drawRect(x, y, x + 10, y + 10, 0xffffffff);
31 if (selected) {
32 Gui.drawRect(x + 1, y + 1, x + 9, y + 9, 0xff000000);
33 }
34 }
35
36 public void setSelected(boolean selected) {
37 this.selected = selected;

Callers

nothing calls this directly

Calls 4

getVarsMethod · 0.95
drawRectMethod · 0.95
drawStringMethod · 0.65
shortenToWidthMethod · 0.65

Tested by

no test coverage detected