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

Method draw

Minecraft-Utils/1.13/src/StringButton.java:17–38  ·  view source on GitHub ↗
(int var1, int var2)

Source from the content-addressed store, hash-verified

15 }
16
17 @Override
18 public void draw(int var1, int var2) {
19 if (!this.m) {
20 return;
21 }
22
23 cfi var4 = cfi.s();
24 ctp.c(1.0F, 1.0F, 1.0F, 1.0F);
25 this.n = var1 >= this.h && var2 >= this.i && var1 < this.h + this.f && var2 < this.i + this.g;
26 ctp.m();
27 ctp.a(ctp.r.l, ctp.l.j, ctp.r.e, ctp.l.n);
28 ctp.a(ctp.r.l, ctp.l.j);
29 this.a(var4, var1, var2);
30 int var7 = 14737632;
31 if (!this.l) {
32 var7 = 10526880;
33 } else if (this.n) {
34 var7 = 16777120;
35 }
36
37 Gui.drawCenteredString(this.j, this.h + this.f / 2, this.i + (this.g - 8) / 2, var7);
38 }
39
40}

Callers

nothing calls this directly

Calls 4

drawCenteredStringMethod · 0.95
cMethod · 0.45
mMethod · 0.45
aMethod · 0.45

Tested by

no test coverage detected