public void drawScreen(int par1, int par2, float par3) {
   super.drawScreen(par1, par2, par3);
   boolean op = false; // TODO: Check if player is OP
   if (Keyboard.isKeyDown(Keyboard.KEY_O) && op) {
     player.openGui(ModUncrafting.instance, 1, worldObj, x, y, z);
   }
 }
示例#2
0
 public void openGui(EntityPlayer player, int id, World world, int x, int y, int z) {
   if (debugGui)
     System.out.printf(
         "BaseMod.openGui: for %s with id %s in %s at (%s, %s, %s)\n",
         /*base*/ this, id, world, x, y, z);
   player.openGui(/*base*/ this, id, world, x, y, z);
 }