public boolean sendUseItem(EntityPlayer var1, World var2, ItemStack var3) {
      int var4 = var3.stackSize;
      ItemStack var5 = var3.useItemRightClick(var2, var1);
      if(var5 == var3 && (var5 == null || var5.stackSize == var4)) {
         return false;
      } else {
         var1.inventory.mainInventory[var1.inventory.currentItem] = var5;
         if(var5.stackSize == 0) {
            var1.inventory.mainInventory[var1.inventory.currentItem] = null;
         }

         return true;
      }
   }