Class EnchantmentBeta

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

Hierarchy

  • Enchantment

Constructors

Properties

Constructors

  • Parameters

    • enchantmentType: EnchantmentType

      Type of the enchantment.

    • Optional level: number

      Level of the enchantment.

    Returns Enchantment

    Remarks

    Creates a new particular type of enchantment configuration.

Properties

level: number

The level of this enchantment instance.

The enchantment type of this instance.