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

Method getBoxX

Minecraft-Utils/1.8.9/src/ColorSelector.java:94–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93
94 private int getBoxX() {
95 return getX() + (getWidth() + MinecraftFactory.getVars().getStringWidth(getLabel())) / 2 + 4;
96 }
97
98 private int getBoxY() {
99 return getY() + (getHeight() - boxHeight) / 2;

Callers 1

drawMethod · 0.95

Calls 5

getVarsMethod · 0.95
getXMethod · 0.65
getWidthMethod · 0.65
getStringWidthMethod · 0.65
getLabelMethod · 0.65

Tested by

no test coverage detected