Enchantments
endstone.enchantments
¶
Classes relating to the specialized enhancements to ItemStacks.
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. |
get |
Attempts to get the Enchantment with the given name. |
Attributes:
| Name | Type | Description |
|---|---|---|
AQUA_AFFINITY |
|
|
BANE_OF_ARTHROPODS |
|
|
BLAST_PROTECTION |
|
|
BREACH |
|
|
CHANNELING |
|
|
CURSE_OF_BINDING |
|
|
CURSE_OF_VANISHING |
|
|
DENSITY |
|
|
DEPTH_STRIDER |
|
|
EFFICIENCY |
|
|
FEATHER_FALLING |
|
|
FIRE_ASPECT |
|
|
FIRE_PROTECTION |
|
|
FLAME |
|
|
FROST_WALKER |
|
|
IMPALING |
|
|
INFINITY |
|
|
KNOCKBACK |
|
|
LOOTING |
|
|
LOYALTY |
|
|
LUCK_OF_THE_SEA |
|
|
LURE |
|
|
MENDING |
|
|
MULTISHOT |
|
|
PIERCING |
|
|
POWER |
|
|
PROJECTILE_PROTECTION |
|
|
PROTECTION |
|
|
PUNCH |
|
|
QUICK_CHARGE |
|
|
RESPIRATION |
|
|
RIPTIDE |
|
|
SHARPNESS |
|
|
SILK_TOUCH |
|
|
SMITE |
|
|
SOUL_SPEED |
|
|
SWIFT_SNEAK |
|
|
THORNS |
|
|
UNBREAKING |
|
|
WIND_BURST |
|
|
id |
str
|
Return the 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. |
BANE_OF_ARTHROPODS
class-attribute
instance-attribute
¶
BLAST_PROTECTION
class-attribute
instance-attribute
¶
PROJECTILE_PROTECTION
class-attribute
instance-attribute
¶
start_level
property
¶
start_level: int
Gets the level that this Enchantment should start at (also known as minimum level).
translation_key
property
¶
translation_key: str
Get the translation key, suitable for use in a translation component.
can_enchant_item
¶
Checks 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) -> bool
Check if this enchantment conflicts with another enchantment.
get
staticmethod
¶
get(name: str) -> Enchantment
Attempts to get the Enchantment with the given name.