Enchantments
endstone.enchantments
¶
Classes relating to the specialized enhancements to ItemStacks.
Classes:
| Name | Description |
|---|---|
Enchantment |
Represents an enchantment that may be added to armor, weapons, tools or other items. |
Enchantment
¶
Represents an enchantment that may be added to armor, weapons, tools or other items.
Methods:
| Name | Description |
|---|---|
can_enchant_item |
Checks if this |
conflicts_with |
Check if this enchantment conflicts with another enchantment. |
get |
Look up a registry entry by identifier. |
Attributes:
AQUA_AFFINITY
class-attribute
instance-attribute
¶
AQUA_AFFINITY: Identifier[Enchantment] = (
"minecraft:aqua_affinity"
)
BANE_OF_ARTHROPODS
class-attribute
instance-attribute
¶
BANE_OF_ARTHROPODS: Identifier[Enchantment] = (
"minecraft:bane_of_arthropods"
)
BLAST_PROTECTION
class-attribute
instance-attribute
¶
BLAST_PROTECTION: Identifier[Enchantment] = (
"minecraft:blast_protection"
)
CHANNELING
class-attribute
instance-attribute
¶
CHANNELING: Identifier[Enchantment] = "minecraft:channeling"
CURSE_OF_BINDING
class-attribute
instance-attribute
¶
CURSE_OF_BINDING: Identifier[Enchantment] = (
"minecraft:binding"
)
CURSE_OF_VANISHING
class-attribute
instance-attribute
¶
CURSE_OF_VANISHING: Identifier[Enchantment] = (
"minecraft:vanishing"
)
DEPTH_STRIDER
class-attribute
instance-attribute
¶
DEPTH_STRIDER: Identifier[Enchantment] = (
"minecraft:depth_strider"
)
EFFICIENCY
class-attribute
instance-attribute
¶
EFFICIENCY: Identifier[Enchantment] = "minecraft:efficiency"
FEATHER_FALLING
class-attribute
instance-attribute
¶
FEATHER_FALLING: Identifier[Enchantment] = (
"minecraft:feather_falling"
)
FIRE_ASPECT
class-attribute
instance-attribute
¶
FIRE_ASPECT: Identifier[Enchantment] = (
"minecraft:fire_aspect"
)
FIRE_PROTECTION
class-attribute
instance-attribute
¶
FIRE_PROTECTION: Identifier[Enchantment] = (
"minecraft:fire_protection"
)
FROST_WALKER
class-attribute
instance-attribute
¶
FROST_WALKER: Identifier[Enchantment] = (
"minecraft:frost_walker"
)
IMPALING
class-attribute
instance-attribute
¶
IMPALING: Identifier[Enchantment] = 'minecraft:impaling'
INFINITY
class-attribute
instance-attribute
¶
INFINITY: Identifier[Enchantment] = 'minecraft:infinity'
KNOCKBACK
class-attribute
instance-attribute
¶
KNOCKBACK: Identifier[Enchantment] = 'minecraft:knockback'
LUCK_OF_THE_SEA
class-attribute
instance-attribute
¶
LUCK_OF_THE_SEA: Identifier[Enchantment] = (
"minecraft:luck_of_the_sea"
)
MULTISHOT
class-attribute
instance-attribute
¶
MULTISHOT: Identifier[Enchantment] = 'minecraft:multishot'
PIERCING
class-attribute
instance-attribute
¶
PIERCING: Identifier[Enchantment] = 'minecraft:piercing'
PROJECTILE_PROTECTION
class-attribute
instance-attribute
¶
PROJECTILE_PROTECTION: Identifier[Enchantment] = (
"minecraft:projectile_protection"
)
PROTECTION
class-attribute
instance-attribute
¶
PROTECTION: Identifier[Enchantment] = "minecraft:protection"
QUICK_CHARGE
class-attribute
instance-attribute
¶
QUICK_CHARGE: Identifier[Enchantment] = (
"minecraft:quick_charge"
)
RESPIRATION
class-attribute
instance-attribute
¶
RESPIRATION: Identifier[Enchantment] = (
"minecraft:respiration"
)
SHARPNESS
class-attribute
instance-attribute
¶
SHARPNESS: Identifier[Enchantment] = 'minecraft:sharpness'
SILK_TOUCH
class-attribute
instance-attribute
¶
SILK_TOUCH: Identifier[Enchantment] = "minecraft:silk_touch"
SOUL_SPEED
class-attribute
instance-attribute
¶
SOUL_SPEED: Identifier[Enchantment] = "minecraft:soul_speed"
SWIFT_SNEAK
class-attribute
instance-attribute
¶
SWIFT_SNEAK: Identifier[Enchantment] = (
"minecraft:swift_sneak"
)
UNBREAKING
class-attribute
instance-attribute
¶
UNBREAKING: Identifier[Enchantment] = "minecraft:unbreaking"
WIND_BURST
class-attribute
instance-attribute
¶
WIND_BURST: Identifier[Enchantment] = "minecraft:wind_burst"
start_level
property
¶
start_level: int
The level that this Enchantment should start at (also known as minimum level).
translation_key
property
¶
translation_key: str
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item
|
ItemStack
|
Item to test. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
|
conflicts_with
¶
conflicts_with(other: Enchantment) -> bool
Check if this enchantment conflicts with another enchantment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
other
|
Enchantment
|
The enchantment to check against. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
|
get
staticmethod
¶
get(name: Identifier[Enchantment] | str) -> Enchantment
Look up a registry entry by identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
Identifier[Enchantment] | str
|
Identifier to look up. |
required |
Returns:
| Type | Description |
|---|---|
Enchantment
|
The |