For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EnchantmentType.md.

Class: EnchantmentType

Beta

包含一种附魔类型的信息。

Contains information on a type of enchantment.

Constructors

Constructor

new EnchantmentType(enchantmentType): EnchantmentType

Beta

Parameters

enchantmentType

string

Returns

EnchantmentType

Throws

This function can throw errors.

Properties

id

readonly id: string

Beta

Remarks

附魔类型的名称。

The name of the enchantment type.


maxLevel

readonly maxLevel: number

Beta

Remarks

此附魔类型可拥有的最大等级。

The maximum level this type of enchantment can have.