示例#1
0
 @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);
 }
示例#2
0
 @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());
 }
示例#3
0
 @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);
 }