Class EnchantmentBeta

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

Hierarchy

  • Enchantment

Constructors

Properties

Constructors

  • Parameters

    • enchantmentType: string | EnchantmentType

      Type of the enchantment.

    • Optional level: number

      Level of the enchantment.

    Returns Enchantment

    Remarks

    Creates a new particular type of enchantment configuration.

    Throws

    This function can throw errors.

Properties

level: number

Remarks

The level of this enchantment instance.

This property can't be edited in read-only mode.

Remarks

The enchantment type of this instance.