Class: EnchantmentTypes
Contains a catalog of Minecraft Enchantment Types that are available in this world.
Constructors
new EnchantmentTypes()
private
new EnchantmentTypes():EnchantmentTypes
Returns
Methods
get()
static
get(enchantmentId
):EnchantmentType
Parameters
Parameter | Type | Description |
---|---|---|
enchantmentId | string | Identifier of the enchantment. For example, "minecraft:flame". |
Returns
If available, returns an EnchantmentType object that represents the specified enchantment.
Remarks
Retrieves an enchantment with the specified identifier.
getAll()
Beta
static
getAll():EnchantmentType
[]
Returns
Remarks
Returns a collection of all available enchantment types.