Class EnchantmentTypes

Rc

Contains a catalog of Minecraft Enchantment Types that are available in this world.

Hierarchy

  • EnchantmentTypes

Constructors

Methods

Constructors

Methods

  • Parameters

    • enchantmentId: string

      Identifier of the enchantment. For example, "minecraft:flame".

    Returns undefined | EnchantmentType

    If available, returns an EnchantmentType object that represents the specified enchantment.

    Remarks

    Retrieves an enchantment with the specified identifier.

  • Returns EnchantmentType[]

    Rc

    Remarks

    Returns a collection of all available enchantment types.