endstone.enchantments
Classes:
| Name | Description |
|---|---|
Enchantment |
Enchantment
Methods:
| Name | Description |
|---|---|
can_enchant_item | Checks if this Enchantment may be applied to the given ItemStack. |
conflicts_with | Check if this enchantment conflicts with another enchantment. |
Attributes:
| Name | Type | Description |
|---|---|---|
key | NamespacedKey | Return the namespaced identifier for this enchantment. |
max_level | int | Gets the maximum level that this Enchantment may become. |
start_level | int | Gets the level that this Enchantment should start at (also known as minimum level). |
translation_key | str | Get the translation key, suitable for use in a translation component. |
key
key: NamespacedKeyReturn the namespaced identifier for this enchantment.
max_level
max_level: intGets the maximum level that this Enchantment may become.
start_level
start_level: intGets the level that this Enchantment should start at (also known as minimum level).
translation_key
translation_key: strGet the translation key, suitable for use in a translation component.
can_enchant_item
can_enchant_item(item:ItemStack) -> boolChecks if this Enchantment may be applied to the given ItemStack.
This does not check if it conflicts with any enchantments already applied to the item.
conflicts_with
conflicts_with(other:Enchantment) -> boolCheck if this enchantment conflicts with another enchantment.
Last updated on