Package net.fabricmc.fabric.api.item.v1
Interface EnchantmentEvents.Modify
- Enclosing class:
EnchantmentEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmodify(RegistryKey<Enchantment> key, Enchantment.Builder builder, EnchantmentSource source) Modifies the effects of anEnchantment.
-
Method Details
-
modify
Modifies the effects of anEnchantment.- Parameters:
key- The ID of the enchantmentbuilder- The enchantment buildersource- The source of the enchantment
-