Interface EnchantmentEffects


public interface EnchantmentEffects
The vanilla effect components an enchantment may declare in its effects object.

Every component is sent to clients. Only the components listed by Enchantments.supportedEffectComponents() are run by the server.

Since:
0.1.0
See Also:
  • Field Details

    • ARMOR_EFFECTIVENESS

      static final Key ARMOR_EFFECTIVENESS
      The fraction of the damage absorbed by the armor of the victim, such as Breach.
      Since:
      0.1.0
    • ATTRIBUTES

      static final Key ATTRIBUTES
      The attribute modifiers granted while equipped, such as Efficiency.
      Since:
      0.1.0
    • DAMAGE

      static final Key DAMAGE
      The damage of a melee attack, such as Sharpness.
      Since:
      0.1.0
    • DAMAGE_IMMUNITY

      static final Key DAMAGE_IMMUNITY
      The damage ignored by the wearer, such as Frost Walker on magma blocks.
      Since:
      0.1.0
    • DAMAGE_PROTECTION

      static final Key DAMAGE_PROTECTION
      The protection points against damage, such as Protection.
      Since:
      0.1.0
    • KNOCKBACK

      static final Key KNOCKBACK
      The knockback of a melee attack, such as Knockback.
      Since:
      0.1.0
    • POST_ATTACK

      static final Key POST_ATTACK
      The effects applied after an attack, such as Fire Aspect or Thorns.
      Since:
      0.1.0
    • PREVENT_ARMOR_CHANGE

      static final Key PREVENT_ARMOR_CHANGE
      Prevents the stack from being removed from its armor slot, such as Curse of Binding.
      Since:
      0.1.0
    • PREVENT_EQUIPMENT_DROP

      static final Key PREVENT_EQUIPMENT_DROP
      Destroys the stack instead of dropping it on death, such as Curse of Vanishing.
      Since:
      0.1.0
    • TICK

      static final Key TICK
      The effects applied every tick while equipped, such as Soul Speed.
      Since:
      0.1.0
    • AMMO_USE

      static final Key AMMO_USE
      The ammunition used by a shot, such as Infinity.
      Since:
      0.1.0
    • BLOCK_EXPERIENCE

      static final Key BLOCK_EXPERIENCE
      The experience dropped by mined blocks, such as Silk Touch.
      Since:
      0.1.0
    • CROSSBOW_CHARGE_TIME

      static final Key CROSSBOW_CHARGE_TIME
      The charge time of a crossbow, such as Quick Charge.
      Since:
      0.1.0
    • CROSSBOW_CHARGING_SOUNDS

      static final Key CROSSBOW_CHARGING_SOUNDS
      The sounds of a charging crossbow, such as Quick Charge.
      Since:
      0.1.0
    • EQUIPMENT_DROPS

      static final Key EQUIPMENT_DROPS
      The chance for a killed mob to drop its equipment, such as Looting.
      Since:
      0.1.0
    • FISHING_LUCK_BONUS

      static final Key FISHING_LUCK_BONUS
      The luck when fishing, such as Luck of the Sea.
      Since:
      0.1.0
    • FISHING_TIME_REDUCTION

      static final Key FISHING_TIME_REDUCTION
      The time before a fish bites, such as Lure.
      Since:
      0.1.0
    • HIT_BLOCK

      static final Key HIT_BLOCK
      The effects applied when a projectile hits a block, such as Channeling.
      Since:
      0.1.0
    • ITEM_DAMAGE

      static final Key ITEM_DAMAGE
      The durability lost by the stack, such as Unbreaking.
      Since:
      0.1.0
    • LOCATION_CHANGED

      static final Key LOCATION_CHANGED
      The effects applied when the wearer moves, such as Frost Walker.
      Since:
      0.1.0
    • MOB_EXPERIENCE

      static final Key MOB_EXPERIENCE
      The experience dropped by killed mobs.
      Since:
      0.1.0
    • POST_PIERCING_ATTACK

      static final Key POST_PIERCING_ATTACK
      The effects applied after a piercing attack, such as Lunge.
      Since:
      0.1.0
    • PROJECTILE_COUNT

      static final Key PROJECTILE_COUNT
      The number of projectiles fired by a shot, such as Multishot.
      Since:
      0.1.0
    • PROJECTILE_PIERCING

      static final Key PROJECTILE_PIERCING
      The number of entities a projectile goes through, such as Piercing.
      Since:
      0.1.0
    • PROJECTILE_SPAWNED

      static final Key PROJECTILE_SPAWNED
      The effects applied to a fired projectile, such as Flame.
      Since:
      0.1.0
    • PROJECTILE_SPREAD

      static final Key PROJECTILE_SPREAD
      The spread of the projectiles of a shot, such as Multishot.
      Since:
      0.1.0
    • REPAIR_WITH_XP

      static final Key REPAIR_WITH_XP
      The durability repaired by experience orbs, such as Mending.
      Since:
      0.1.0
    • SMASH_DAMAGE_PER_FALLEN_BLOCK

      static final Key SMASH_DAMAGE_PER_FALLEN_BLOCK
      The bonus damage of a mace per fallen block, such as Density.
      Since:
      0.1.0
    • TRIDENT_RETURN_ACCELERATION

      static final Key TRIDENT_RETURN_ACCELERATION
      The return speed of a thrown trident, such as Loyalty.
      Since:
      0.1.0
    • TRIDENT_SOUND

      static final Key TRIDENT_SOUND
      The sound of a riptide, such as Riptide.
      Since:
      0.1.0
    • TRIDENT_SPIN_ATTACK_STRENGTH

      static final Key TRIDENT_SPIN_ATTACK_STRENGTH
      The strength of a riptide, such as Riptide.
      Since:
      0.1.0