| 6 | import java.util.List; |
| 7 | |
| 8 | public class GuiHandle extends cjs implements IGuiHandle { |
| 9 | |
| 10 | private Gui child; |
| 11 | |
| 12 | public GuiHandle(Gui child) { |
| 13 | this.child = child; |
| 14 | } |
| 15 | |
| 16 | @Override |
| 17 | public void c() { |
| 18 | super.c(); // TODO: needed? |
| 19 | child.initGui0(); |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | public void a(int mouseX, int mouseY, float partialTicks) { |
| 24 | drawDefaultBackground(); |
| 25 | child.drawScreen0(mouseX, mouseY, partialTicks); |
| 26 | super.a(mouseX, mouseY, partialTicks); |
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | public void f() { |
| 31 | child.tick0(); |
| 32 | } |
| 33 | |
| 34 | // @Override |
| 35 | // public void k() { |
| 36 | // child.handleMouseInput0(); TODO |
| 37 | // super.k(); |
| 38 | // } |
| 39 | |
| 40 | @Override |
| 41 | public void n() { |
| 42 | child.guiClosed0(); |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public boolean charTyped(char c, int keyCode) { |
| 47 | boolean result = super.charTyped(c, keyCode); |
| 48 | child.keyTyped0(c, keyCode); |
| 49 | return result; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public boolean keyPressed(int key, int scanCode, int modifiers) { |
| 54 | boolean result = super.keyPressed(key, scanCode, modifiers); |
| 55 | child.keyPressed0(key, scanCode, modifiers); |
| 56 | return result; |
| 57 | } |
| 58 | |
| 59 | @Override |
| 60 | public boolean mouseClicked(double mouseX, double mouseY, int button) { |
| 61 | boolean result = super.mouseClicked(mouseX, mouseY, button); |
| 62 | child.mouseClicked0((int) mouseX, (int) mouseY, button); |
| 63 | return result; |
| 64 | } |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected