Examples of onSlotChange()


Examples of net.minecraft.inventory.Slot.onSlotChange()

                    return null;
                }

                if (par1 == 1)
                {
                    slot.onSlotChange(var4, var2);
                }
            }
            else
            {
                if (TileEntityFurnace.getItemBurnTime(var4) > 0)
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

                if (!mergeItemStack(var5, 10, 46, true))
                {
                    return null;
                }

                var4.onSlotChange(var5, var3);
            }
            else if (par2 >= 10 && par2 < 37)
            {
                if (!mergeItemStack(var5, 37, 46, false))
                {
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

      } else if (slotIndex >= numSlots - 9 && slotIndex < numSlots) {
        if (!shiftItemStack(stackInSlot, numSlots - 9 * 4, numSlots - 9))
          return null;
      } else if (!shiftItemStack(stackInSlot, numSlots - 9 * 4, numSlots))
        return null;
      slot.onSlotChange(stackInSlot, originalStack);
      if (stackInSlot.stackSize <= 0)
        slot.putStack(null);
      else
        slot.onSlotChanged();
      if (stackInSlot.stackSize == originalStack.stackSize)
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

            } else if (slotIndex >= numSlots - 9 && slotIndex < numSlots) {
                if (!shiftItemStack(stackInSlot, numSlots - 9 * 4, numSlots - 9))
                    return null;
            } else if (!shiftItemStack(stackInSlot, numSlots - 9 * 4, numSlots))
                return null;
            slot.onSlotChange(stackInSlot, originalStack);
            if (stackInSlot.stackSize <= 0)
                slot.putStack(null);
            else
                slot.onSlotChanged();
            if (stackInSlot.stackSize == originalStack.stackSize)
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

                if (!this.mergeItemStack(itemstack1, 3, 39, true))
                {
                    return null;
                }

                slot.onSlotChange(itemstack1, itemstack);
            }
            else if (par2 != 1 && par2 != 0)
            {
                if (IronFurnaceRecipes.smelting().getSmeltingResult(itemstack1) != null)
                {
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

                if (!this.mergeItemStack(itemstack1, 3, 39, true))
                {
                    return null;
                }

                slot.onSlotChange(itemstack1, itemstack);
            }
            else if (par2 != 1 && par2 != 0)
            {
                if (OreGrinderRecipes.smelting().getSmeltingResult(itemstack1) != null)
                {
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

          return null;
        }
      } else if (!shiftItemStack(stackInSlot, numSlots - 9 * 4, numSlots)) {
        return null;
      }
      slot.onSlotChange(stackInSlot, originalStack);
      if (stackInSlot.stackSize <= 0) {
        slot.putStack(null);
      } else {
        slot.onSlotChanged();
      }
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

            var3 = var5.copy();

            if(par2 < 9) {
                if(!mergeItemStack(var5, 9, 45, false)) return null;

                var4.onSlotChange(var5, var3);
            } else {

                if(var5.getItem() == Itemss.machineUpgrade) {
                    if(!mergeItemStack(var5, 5, 9, false)) return null;
                } else if(!mergeItemStack(var5, 0, 5, false)) return null;
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

            } else {

                if(var5.getItem() == Itemss.machineUpgrade) {
                    if(!mergeItemStack(var5, 5, 9, false)) return null;
                } else if(!mergeItemStack(var5, 0, 5, false)) return null;
                var4.onSlotChange(var5, var3);
            }

            if(var5.stackSize == 0) {
                var4.putStack((ItemStack)null);
            } else {
View Full Code Here

Examples of net.minecraft.inventory.Slot.onSlotChange()

            var3 = var5.copy();

            if(par2 < 5) {
                if(!mergeItemStack(var5, 5, 41, false)) return null;

                var4.onSlotChange(var5, var3);
            } else {

                if(var5.getItem() == Itemss.machineUpgrade) {
                    if(!mergeItemStack(var5, 0, 4, false)) return null;
                } else if(!mergeItemStack(var5, 4, 5, false)) return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.