@Override public void keyTyped(char c, int keycode) { if (keycode == Keyboard.KEY_ESCAPE || keycode == Keyboard.KEY_BACK) { Minecraft.getMinecraft().displayGuiScreen(opt.slot.getGui()); return; } super.keyTyped(c, keycode); }
@Override public void drawScreen(int mousex, int mousey, float f) { super.drawScreen(mousex, mousey, f); if (show()) HUDRenderer.renderOverlay( new ItemStack(Blocks.redstone_block), Arrays.asList("RedstoneBlock", EnumChatFormatting.RED + "Sample"), renderPos()); }
@Override protected void mouseClicked(int x, int y, int button) { if (button == 0 && selectionBox().contains(x, y)) dragDown = getMousePosition(); else super.mouseClicked(x, y, button); }