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

Method overlayBackground

Minecraft-Utils/1.9/src/FileSelector.java:263–274  ·  view source on GitHub ↗
(int var, int var1, int var2, int var3)

Source from the content-addressed store, hash-verified

261 }
262
263 protected void overlayBackground(int var, int var1, int var2, int var3) {
264 bnu var4 = bnu.a();
265 bmz var5 = var4.c();
266 MinecraftFactory.getVars().bindTexture(bcu.b);
267 GLUtil.color(1.0F, 1.0F, 1.0F, 1.0F);
268 var5.a(7, bvp.i);
269 var5.b((double) left, (double) var1, 0.0D).a(0.0D, (double) ((float) var1 / 32.0F)).b(64, 64, 64, var3).d();
270 var5.b((double) (left + (right - left)), (double) var1, 0.0D).a((double) ((float) (right - left) / 32.0F), (double) ((float) var1 / 32.0F)).b(64, 64, 64, var3).d();
271 var5.b((double) (left + (right - left)), (double) var, 0.0D).a((double) ((float) (right - left) / 32.0F), (double) ((float) var / 32.0F)).b(64, 64, 64, var2).d();
272 var5.b((double) left, (double) var, 0.0D).a(0.0D, (double) ((float) var / 32.0F)).b(64, 64, 64, var2).d();
273 var4.b();
274 }
275
276 public int getContentHeight() {
277 return (int) Math.ceil((double) files.size() / (double) columnCount) * getSlotHeight();

Callers 1

drawMethod · 0.95

Calls 7

getVarsMethod · 0.95
colorMethod · 0.95
bindTextureMethod · 0.65
aMethod · 0.45
cMethod · 0.45
dMethod · 0.45
bMethod · 0.45

Tested by

no test coverage detected