addEnchantments

public void addEnchantments(Map<Enchantment, Integer> enchantments)

Adds the specified enchantments to this item stack.

This method is the same as calling addEnchantment for each element of the map.

Parameters

enchantments

Enchantments to add

Throws

if any specific enchantment or level is null. Warning: Some enchantments may be added before this exception is thrown.