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

Method draw

Minecraft-Utils/1.8/src/IconButton.java:23–31  ·  view source on GitHub ↗
(int mouseX, int mouseY)

Source from the content-addressed store, hash-verified

21 }
22
23 @Override
24 public void draw(int mouseX, int mouseY) {
25 super.draw(mouseX, mouseY);
26 if (isVisible()) {
27 MinecraftFactory.getVars().bindTexture(resourceLocation);
28 GLUtil.color(1, 1, 1, 1);
29 Gui.drawModalRectWithCustomSizedTexture(getX() + 2, getY() + 2, u, v, 16, 16, 128, 128);
30 }
31 }
32}

Callers

nothing calls this directly

Calls 8

getVarsMethod · 0.95
colorMethod · 0.95
drawMethod · 0.65
isVisibleMethod · 0.65
bindTextureMethod · 0.65
getXMethod · 0.65
getYMethod · 0.65

Tested by

no test coverage detected