addUnsafeEnchantment

public void addUnsafeEnchantment(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.

This method is unsafe and will ignore level restrictions or item type. Use at your own discretion.

Parameters

ench

Enchantment to add

level

Level of the enchantment