Esempio n. 1
0
 public override net.minecraft.src.ItemStack Func_27086_a(int i)
 {
     net.minecraft.src.ItemStack itemstack = null;
     net.minecraft.src.Slot      slot      = (net.minecraft.src.Slot)inventorySlots[i];
     if (slot != null && slot.Func_27006_b())
     {
         net.minecraft.src.ItemStack itemstack1 = slot.GetStack();
         itemstack = itemstack1.Copy();
         if (i < field_27088_b * 9)
         {
             Func_28126_a(itemstack1, field_27088_b * 9, inventorySlots.Count, true);
         }
         else
         {
             Func_28126_a(itemstack1, 0, field_27088_b * 9, false);
         }
         if (itemstack1.stackSize == 0)
         {
             slot.PutStack(null);
         }
         else
         {
             slot.OnSlotChanged();
         }
     }
     return(itemstack);
 }
Esempio n. 2
0
 public override net.minecraft.src.ItemStack Func_27086_a(int i)
 {
     net.minecraft.src.ItemStack itemstack = null;
     net.minecraft.src.Slot      slot      = (net.minecraft.src.Slot)inventorySlots[i];
     if (slot != null && slot.Func_27006_b())
     {
         net.minecraft.src.ItemStack itemstack1 = slot.GetStack();
         itemstack = itemstack1.Copy();
         if (i == 2)
         {
             Func_28126_a(itemstack1, 3, 39, true);
         }
         else
         {
             if (i >= 3 && i < 30)
             {
                 Func_28126_a(itemstack1, 30, 39, false);
             }
             else
             {
                 if (i >= 30 && i < 39)
                 {
                     Func_28126_a(itemstack1, 3, 30, false);
                 }
                 else
                 {
                     Func_28126_a(itemstack1, 3, 39, false);
                 }
             }
         }
         if (itemstack1.stackSize == 0)
         {
             slot.PutStack(null);
         }
         else
         {
             slot.OnSlotChanged();
         }
         if (itemstack1.stackSize != itemstack.stackSize)
         {
             slot.OnPickupFromSlot(itemstack1);
         }
         else
         {
             return(null);
         }
     }
     return(itemstack);
 }