wrap

public static void wrap(ItemStack stack, String nbt)

Applies the NBT to the item and saves the original NBT data in the item.

Parameters

stack

The item to apply the NBT to

nbt

The NBT to apply