Class endstone::Enchantment¶
ClassList > endstone > Enchantment
Public Static Attributes¶
| Type | Name |
|---|---|
| constexpr auto | AquaAffinity = EnchantmentId::minecraft("aqua\_affinity")Increases the speed at which a player may mine underwater. |
| constexpr auto | BaneOfArthropods = EnchantmentId::minecraft("bane\_of\_arthropods")Increases damage against arthropod targets. |
| constexpr auto | BlastProtection = EnchantmentId::minecraft("blast\_protection")Provides protection against explosive damage. |
| constexpr auto | Breach = EnchantmentId::minecraft("breach")Reduces armor effectiveness against maces. |
| constexpr auto | Channeling = EnchantmentId::minecraft("channeling")Strikes lightning when a mob is hit with a trident if conditions are stormy. |
| constexpr auto | CurseOfBinding = EnchantmentId::minecraft("binding")Item cannot be removed. |
| constexpr auto | CurseOfVanishing = EnchantmentId::minecraft("vanishing")Item disappears instead of dropping. |
| constexpr auto | Density = EnchantmentId::minecraft("density")Increases fall damage of maces. |
| constexpr auto | DepthStrider = EnchantmentId::minecraft("depth\_strider")Increases walking speed while in water. |
| constexpr auto | Efficiency = EnchantmentId::minecraft("efficiency")Increases the rate at which you mine/dig. |
| constexpr auto | FeatherFalling = EnchantmentId::minecraft("feather\_falling")Provides protection against fall damage. |
| constexpr auto | FireAspect = EnchantmentId::minecraft("fire\_aspect")When attacking a target, has a chance to set them on fire. |
| constexpr auto | FireProtection = EnchantmentId::minecraft("fire\_protection")Provides protection against fire damage. |
| constexpr auto | Flame = EnchantmentId::minecraft("flame")Sets entities on fire when hit by arrows shot from a bow. |
| constexpr auto | Fortune = EnchantmentId::minecraft("fortune")Provides a chance of gaining extra loot when destroying blocks. |
| constexpr auto | FrostWalker = EnchantmentId::minecraft("frost\_walker")Freezes any still water adjacent to ice / frost which player is walking on. |
| constexpr auto | Impaling = EnchantmentId::minecraft("impaling")Deals more damage to mobs that live in the ocean. |
| constexpr auto | Infinity = EnchantmentId::minecraft("infinity")Provides infinite arrows when shooting a bow. |
| constexpr auto | Knockback = EnchantmentId::minecraft("knockback")All damage to other targets will knock them back when hit. |
| constexpr auto | Looting = EnchantmentId::minecraft("looting")Provides a chance of gaining extra loot when killing monsters. |
| constexpr auto | Loyalty = EnchantmentId::minecraft("loyalty")Causes a thrown trident to return to the player who threw it. |
| constexpr auto | LuckOfTheSea = EnchantmentId::minecraft("luck\_of\_the\_sea")Decreases odds of catching worthless junk. |
| constexpr auto | Lure = EnchantmentId::minecraft("lure")Increases rate of fish biting your hook. |
| constexpr auto | Mending = EnchantmentId::minecraft("mending")Allows mending the item using experience orbs. |
| constexpr auto | Multishot = EnchantmentId::minecraft("multishot")Shoot multiple arrows from crossbows. |
| constexpr auto | Piercing = EnchantmentId::minecraft("piercing")Crossbow projectiles pierce entities. |
| constexpr auto | Power = EnchantmentId::minecraft("power")Provides extra damage when shooting arrows from bows. |
| constexpr auto | ProjectileProtection = EnchantmentId::minecraft("projectile\_protection")Provides protection against projectile damage. |
| constexpr auto | Protection = EnchantmentId::minecraft("protection")Provides protection against environmental damage. |
| constexpr auto | Punch = EnchantmentId::minecraft("punch")Provides a knockback when an entity is hit by an arrow from a bow. |
| constexpr auto | QuickCharge = EnchantmentId::minecraft("quick\_charge")Charges crossbows quickly. |
| constexpr auto | Respiration = EnchantmentId::minecraft("respiration")Decreases the rate of air loss whilst underwater. |
| constexpr auto | Riptide = EnchantmentId::minecraft("riptide")When it is rainy, launches the player in the direction their trident is thrown. |
| constexpr auto | Sharpness = EnchantmentId::minecraft("sharpness")Increases damage against all targets. |
| constexpr auto | SilkTouch = EnchantmentId::minecraft("silk\_touch")Allows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone) |
| constexpr auto | Smite = EnchantmentId::minecraft("smite")Increases damage against undead targets. |
| constexpr auto | SoulSpeed = EnchantmentId::minecraft("soul\_speed")Walk quicker on soul blocks. |
| constexpr auto | SwiftSneak = EnchantmentId::minecraft("swift\_sneak")Walk quicker while sneaking. |
| constexpr auto | Thorns = EnchantmentId::minecraft("thorns")Damages the attacker. |
| constexpr auto | Unbreaking = EnchantmentId::minecraft("unbreaking")Decreases the rate at which a tool looses durability. |
| constexpr auto | WindBurst = EnchantmentId::minecraft("wind\_burst")Emits wind burst upon hitting enemy. |
Public Functions¶
| Type | Name |
|---|---|
| virtual bool | canEnchantItem (const ItemStack & item) const = 0 Checks if this Enchantment may be applied to the givenItemStack . |
| virtual bool | conflictsWith (const Enchantment & other) const = 0 Check if this enchantment conflicts with another enchantment. |
| virtual EnchantmentId | getId () const = 0 Return the identifier for this enchantment. |
| virtual int | getMaxLevel () const = 0 Gets the maximum level that this Enchantment may become. |
| virtual int | getStartLevel () const = 0 Gets the level that this Enchantment should start at (also known as minimum level). |
| virtual std::string | getTranslationKey () const = 0 Get the translation key, suitable for use in a translation component. |
| operator EnchantmentId () const |
|
| bool | operator!= (const EnchantmentId & other) const |
| bool | operator!= (const Enchantment & other) const |
| bool | operator== (const EnchantmentId & other) const |
| bool | operator== (const Enchantment & other) const |
| virtual | ~Enchantment () = default |
Public Static Attributes Documentation¶
variable AquaAffinity¶
Increases the speed at which a player may mine underwater.
variable BaneOfArthropods¶
Increases damage against arthropod targets.
variable BlastProtection¶
Provides protection against explosive damage.
variable Breach¶
Reduces armor effectiveness against maces.
variable Channeling¶
Strikes lightning when a mob is hit with a trident if conditions are stormy.
variable CurseOfBinding¶
Item cannot be removed.
variable CurseOfVanishing¶
Item disappears instead of dropping.
variable Density¶
Increases fall damage of maces.
variable DepthStrider¶
Increases walking speed while in water.
variable Efficiency¶
Increases the rate at which you mine/dig.
variable FeatherFalling¶
Provides protection against fall damage.
variable FireAspect¶
When attacking a target, has a chance to set them on fire.
variable FireProtection¶
Provides protection against fire damage.
variable Flame¶
Sets entities on fire when hit by arrows shot from a bow.
variable Fortune¶
Provides a chance of gaining extra loot when destroying blocks.
variable FrostWalker¶
Freezes any still water adjacent to ice / frost which player is walking on.
variable Impaling¶
Deals more damage to mobs that live in the ocean.
variable Infinity¶
Provides infinite arrows when shooting a bow.
variable Knockback¶
All damage to other targets will knock them back when hit.
variable Looting¶
Provides a chance of gaining extra loot when killing monsters.
variable Loyalty¶
Causes a thrown trident to return to the player who threw it.
variable LuckOfTheSea¶
Decreases odds of catching worthless junk.
variable Lure¶
Increases rate of fish biting your hook.
variable Mending¶
Allows mending the item using experience orbs.
variable Multishot¶
Shoot multiple arrows from crossbows.
variable Piercing¶
Crossbow projectiles pierce entities.
variable Power¶
Provides extra damage when shooting arrows from bows.
variable ProjectileProtection¶
Provides protection against projectile damage.
variable Protection¶
Provides protection against environmental damage.
variable Punch¶
Provides a knockback when an entity is hit by an arrow from a bow.
variable QuickCharge¶
Charges crossbows quickly.
variable Respiration¶
Decreases the rate of air loss whilst underwater.
variable Riptide¶
When it is rainy, launches the player in the direction their trident is thrown.
variable Sharpness¶
Increases damage against all targets.
variable SilkTouch¶
Allows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone)
variable Smite¶
Increases damage against undead targets.
variable SoulSpeed¶
Walk quicker on soul blocks.
variable SwiftSneak¶
Walk quicker while sneaking.
variable Thorns¶
Damages the attacker.
variable Unbreaking¶
Decreases the rate at which a tool looses durability.
variable WindBurst¶
Emits wind burst upon hitting enemy.
Public Functions Documentation¶
function canEnchantItem¶
Checks if this Enchantment may be applied to the givenItemStack .
This does not check if it conflicts with any enchantments already applied to the item.
Parameters:
itemItem to test
Returns:
True if the enchantment may be applied, otherwise False
function conflictsWith¶
Check if this enchantment conflicts with another enchantment.
Parameters:
otherThe enchantment to check against
Returns:
True if there is a conflict.
function getId¶
Return the identifier for this enchantment.
Returns:
this enchantment's id
function getMaxLevel¶
Gets the maximum level that this Enchantment may become.
Returns:
Maximum level of the Enchantment
function getStartLevel¶
Gets the level that this Enchantment should start at (also known as minimum level).
Returns:
Starting level of the Enchantment
function getTranslationKey¶
Get the translation key, suitable for use in a translation component.
Returns:
the translation key
function operator EnchantmentId¶
function operator!=¶
function operator!=¶
function operator==¶
function operator==¶
function ~Enchantment¶
The documentation for this class was generated from the following file include/endstone/enchantments/enchantment.h