Package net.minecraft.src

Examples of net.minecraft.src.ItemStack.copy()


        Slot var3 = (Slot)this.inventorySlots.get(par1);

        if (var3 != null && var3.getHasStack())
        {
            ItemStack var4 = var3.getStack();
            var2 = var4.copy();

            if (par1 < 58 && par1 > 39)
            {
                if (!this.mergeItemStack(var4, 58, 94, true))
                {
View Full Code Here


      }
    }
    for(int i = 0; i <CraftingMatrix.getSizeInventory(); i++) {
      ItemStack itemstack = CraftingMatrix.getStackInSlot(i);
      if(itemstack != null) {
        thePlayer.addItemStackToInventory(itemstack.copy());
        CraftingMatrix.setInventorySlotContents(i, null);
      }
    }
  }
  public static InventoryCrafting GenCraftingMatrix(ItemStack[] Items)
View Full Code Here

      }
    }
    for(int i = 0; i <CraftingMatrix.getSizeInventory(); i++) {
      ItemStack itemstack = CraftingMatrix.getStackInSlot(i);
      if(itemstack != null) {
        thePlayer.addItemStackToInventory(itemstack.copy());
        CraftingMatrix.setInventorySlotContents(i, null);
      }
    }
  }
  public static InventoryCrafting GenCraftingMatrix(ItemStack[] Items)
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.