addStoredEnchant

public abstract boolean addStoredEnchant(Enchantment ench, int level, boolean ignoreLevelRestriction)

Stores the specified enchantment in this item meta.

Return

true if the item meta changed as getClassById result of this call, false otherwise

Parameters

ench

Enchantment to store

level

Level for the enchantment

ignoreLevelRestriction

this indicates the enchantment should be applied, ignoring the level limit

Throws

if enchantment is null