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 Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyThe ammunition used by a shot, such as Infinity.static final KeyThe fraction of the damage absorbed by the armor of the victim, such as Breach.static final KeyThe attribute modifiers granted while equipped, such as Efficiency.static final KeyThe experience dropped by mined blocks, such as Silk Touch.static final KeyThe charge time of a crossbow, such as Quick Charge.static final KeyThe sounds of a charging crossbow, such as Quick Charge.static final KeyThe damage of a melee attack, such as Sharpness.static final KeyThe damage ignored by the wearer, such as Frost Walker on magma blocks.static final KeyThe protection points against damage, such as Protection.static final KeyThe chance for a killed mob to drop its equipment, such as Looting.static final KeyThe luck when fishing, such as Luck of the Sea.static final KeyThe time before a fish bites, such as Lure.static final KeyThe effects applied when a projectile hits a block, such as Channeling.static final KeyThe durability lost by the stack, such as Unbreaking.static final KeyThe knockback of a melee attack, such as Knockback.static final KeyThe effects applied when the wearer moves, such as Frost Walker.static final KeyThe experience dropped by killed mobs.static final KeyThe effects applied after an attack, such as Fire Aspect or Thorns.static final KeyThe effects applied after a piercing attack, such as Lunge.static final KeyPrevents the stack from being removed from its armor slot, such as Curse of Binding.static final KeyDestroys the stack instead of dropping it on death, such as Curse of Vanishing.static final KeyThe number of projectiles fired by a shot, such as Multishot.static final KeyThe number of entities a projectile goes through, such as Piercing.static final KeyThe effects applied to a fired projectile, such as Flame.static final KeyThe spread of the projectiles of a shot, such as Multishot.static final KeyThe durability repaired by experience orbs, such as Mending.static final KeyThe bonus damage of a mace per fallen block, such as Density.static final KeyThe effects applied every tick while equipped, such as Soul Speed.static final KeyThe return speed of a thrown trident, such as Loyalty.static final KeyThe sound of a riptide, such as Riptide.static final KeyThe strength of a riptide, such as Riptide.
-
Field Details
-
ARMOR_EFFECTIVENESS
The fraction of the damage absorbed by the armor of the victim, such as Breach.- Since:
- 0.1.0
-
ATTRIBUTES
The attribute modifiers granted while equipped, such as Efficiency.- Since:
- 0.1.0
-
DAMAGE
-
DAMAGE_IMMUNITY
The damage ignored by the wearer, such as Frost Walker on magma blocks.- Since:
- 0.1.0
-
DAMAGE_PROTECTION
The protection points against damage, such as Protection.- Since:
- 0.1.0
-
KNOCKBACK
-
POST_ATTACK
The effects applied after an attack, such as Fire Aspect or Thorns.- Since:
- 0.1.0
-
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
Destroys the stack instead of dropping it on death, such as Curse of Vanishing.- Since:
- 0.1.0
-
TICK
The effects applied every tick while equipped, such as Soul Speed.- Since:
- 0.1.0
-
AMMO_USE
-
BLOCK_EXPERIENCE
The experience dropped by mined blocks, such as Silk Touch.- Since:
- 0.1.0
-
CROSSBOW_CHARGE_TIME
The charge time of a crossbow, such as Quick Charge.- Since:
- 0.1.0
-
CROSSBOW_CHARGING_SOUNDS
The sounds of a charging crossbow, such as Quick Charge.- Since:
- 0.1.0
-
EQUIPMENT_DROPS
The chance for a killed mob to drop its equipment, such as Looting.- Since:
- 0.1.0
-
FISHING_LUCK_BONUS
-
FISHING_TIME_REDUCTION
-
HIT_BLOCK
The effects applied when a projectile hits a block, such as Channeling.- Since:
- 0.1.0
-
ITEM_DAMAGE
-
LOCATION_CHANGED
The effects applied when the wearer moves, such as Frost Walker.- Since:
- 0.1.0
-
MOB_EXPERIENCE
-
POST_PIERCING_ATTACK
The effects applied after a piercing attack, such as Lunge.- Since:
- 0.1.0
-
PROJECTILE_COUNT
The number of projectiles fired by a shot, such as Multishot.- Since:
- 0.1.0
-
PROJECTILE_PIERCING
The number of entities a projectile goes through, such as Piercing.- Since:
- 0.1.0
-
PROJECTILE_SPAWNED
The effects applied to a fired projectile, such as Flame.- Since:
- 0.1.0
-
PROJECTILE_SPREAD
The spread of the projectiles of a shot, such as Multishot.- Since:
- 0.1.0
-
REPAIR_WITH_XP
The durability repaired by experience orbs, such as Mending.- Since:
- 0.1.0
-
SMASH_DAMAGE_PER_FALLEN_BLOCK
The bonus damage of a mace per fallen block, such as Density.- Since:
- 0.1.0
-
TRIDENT_RETURN_ACCELERATION
The return speed of a thrown trident, such as Loyalty.- Since:
- 0.1.0
-
TRIDENT_SOUND
-
TRIDENT_SPIN_ATTACK_STRENGTH
The strength of a riptide, such as Riptide.- Since:
- 0.1.0
-