MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / copy

Method copy

src/main/java/net/minecraft/item/ItemStack.java:416–426  ·  view source on GitHub ↗

Returns a new stack with the same properties.

()

Source from the content-addressed store, hash-verified

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 {

Callers 15

drawScreenMethod · 0.95
drawSlotMethod · 0.95
updateDragSplittingMethod · 0.95
handleMouseClickMethod · 0.95
onItemRightClickMethod · 0.95
getCraftingResultMethod · 0.95
getCraftingResultMethod · 0.95
getCraftingResultMethod · 0.95
getCraftingResultMethod · 0.95
getRemainingItemsMethod · 0.95
matchesMethod · 0.95
S30PacketWindowItemsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected