Returns a new stack with the same properties.
()
| 414 | * Returns a new stack with the same properties. |
| 415 | */ |
| 416 | public ItemStack copy() |
| 417 | { |
| 418 | ItemStack itemstack = new ItemStack(this.item, this.stackSize, this.itemDamage); |
| 419 | |
| 420 | if (this.stackTagCompound != null) |
| 421 | { |
| 422 | itemstack.stackTagCompound = (NBTTagCompound)this.stackTagCompound.copy(); |
| 423 | } |
| 424 | |
| 425 | return itemstack; |
| 426 | } |
| 427 | |
| 428 | public static boolean areItemStackTagsEqual(ItemStack stackA, ItemStack stackB) |
| 429 | { |
no outgoing calls
no test coverage detected