コード例 #1
0
 protected void func_35208_ae() {
   if (itemInUse != null) {
     func_35201_a(itemInUse, 16);
     int i = itemInUse.stackSize;
     ItemStack itemstack = itemInUse.onFoodEaten(worldObj, this);
     if (itemstack != itemInUse || itemstack != null && itemstack.stackSize != i) {
       inventory.mainInventory[inventory.currentItem] = itemstack;
       if (itemstack.stackSize == 0) {
         inventory.mainInventory[inventory.currentItem] = null;
       }
     }
     clearItemInUse();
   }
 }