接口 Enchantment实验性

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

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

属性

属性

level: number

The level of this enchantment instance.

The enchantment type of this instance.