This interface represents a specific leveled enchantment that is applied to an item.

interface Enchantment {
    level: number;
    type: EnchantmentType;
}

Properties

Properties

level: number

The level of this enchantment instance.

The enchantment type of this instance.