public ItemStack cloneItemStack() { ItemStack itemstack = new ItemStack(this.id, this.count, this.damage); if (this.tag != null) { itemstack.tag = (NBTTagCompound) this.tag.clone(); } return itemstack; }
public ItemStack a(int i) { ItemStack itemstack = new ItemStack(this.id, i, this.damage); if (this.tag != null) { itemstack.tag = (NBTTagCompound) this.tag.clone(); } this.count -= i; return itemstack; }