addEnchantment

public void addEnchantment(Enchantment ench, int level)

Adds the specified Enchantment to this item stack.

If this item stack already contained the given enchantment (at any level), it will be replaced.

Parameters

ench

Enchantment to add

level

Level of the enchantment

Throws

if enchantment null, or enchantment is not applicable