Class ItemEnchantsComponentBeta

When present on an item, this item has applied enchantment effects. Note that this component only applies to data-driven items.

Hierarchy

  • ItemEnchantsComponent

Constructors

Properties

Methods

Constructors

Properties

enchantments: EnchantmentList

Returns a collection of the enchantments applied to this item stack.

componentId: "minecraft:enchantments" = 'minecraft:enchantments'

Identifier of this component.

Methods

  • Returns void

    Remarks

    Removes all enchantments applied to this item stack.

    Throws

    This function can throw errors.