/// <summary> /// Remove the argument from the stack size. Return a new stack object with argument size. /// </summary> public ItemStack SplitStack(int par1) { ItemStack itemstack = new ItemStack(ItemID, par1, ItemDamage); if (StackTagCompound != null) { itemstack.StackTagCompound = (NBTTagCompound)StackTagCompound.Copy(); } StackSize -= par1; return(itemstack); }