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.

@FunctionalInterface public static interface EnchantmentEvents.Modify
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modify(net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> key, net.minecraft.world.item.enchantment.Enchantment.Builder builder, EnchantmentSource source)
    Modifies the effects of an Enchantment.
  • Method Details

    • modify

      void modify(net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> key, net.minecraft.world.item.enchantment.Enchantment.Builder builder, EnchantmentSource source)
      Modifies the effects of an Enchantment.
      Parameters:
      key - The ID of the enchantment
      builder - The enchantment builder
      source - The source of the enchantment