类 EnchantmentTypes实验性

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

方法

方法

  • 实验性

    参数

    • enchantmentId: string

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

    返回 EnchantmentType

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

    Retrieves an enchantment with the specified identifier.