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

Class Button

Minecraft-Utils/1.13/src/Button.java:8–164  ·  view source on GitHub ↗

Created by 5zig. All rights reserved © 2015

Source from the content-addressed store, hash-verified

6 * All rights reserved © 2015
7 */
8public class Button extends cgj implements IButton {
9
10 private int disabledTicks = 0;
11
12 public Button(int id, int x, int y, String label) {
13 super(id, x, y, label);
14 }
15
16 public Button(int id, int x, int y, String label, boolean enabled) {
17 super(id, x, y, label);
18 setEnabled(enabled);
19 }
20
21 public Button(int id, int x, int y, int width, int height, String label) {
22 super(id, x, y, width, height, label);
23 }
24
25 public Button(int id, int x, int y, int width, int height, String label, boolean enabled) {
26 super(id, x, y, width, height, label);
27 setEnabled(enabled);
28 }
29
30 @Override
31 public int getId() {
32 return k;
33 }
34
35 @Override
36 public String getLabel() {
37 return j;
38 }
39
40 @Override
41 public void setLabel(String label) {
42 this.j = label;
43 }
44
45 @Override
46 public int getWidth() {
47 return f;
48 }
49
50 @Override
51 public void setWidth(int width) {
52 this.f = width;
53 }
54
55 @Override
56 public int getHeight() {
57 return g;
58 }
59
60 @Override
61 public void setHeight(int height) {
62 this.g = height;
63 }
64
65 @Override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected