Interface EnchantmentEvents.ModifyWithLookup

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.ModifyWithLookup
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    modify(net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> key, net.minecraft.world.item.enchantment.Enchantment.Builder builder, EnchantmentSource source, net.minecraft.resources.RegistryOps.RegistryInfoLookup registryInfoLookup)
    Deprecated.
    Use ResourceSource variant instead.
    void
    modify(net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> key, net.minecraft.world.item.enchantment.Enchantment.Builder builder, ResourceSource source, net.minecraft.resources.RegistryOps.RegistryInfoLookup registryInfoLookup)
    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, ResourceSource source, net.minecraft.resources.RegistryOps.RegistryInfoLookup registryInfoLookup)
      Modifies the effects of an Enchantment.
      Parameters:
      key - The ID of the enchantment
      builder - The enchantment builder
      source - The source of the enchantment
      registryInfoLookup - Lookup interface used to access registry information
    • modify

      @Deprecated default void modify(net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> key, net.minecraft.world.item.enchantment.Enchantment.Builder builder, EnchantmentSource source, net.minecraft.resources.RegistryOps.RegistryInfoLookup registryInfoLookup)
      Deprecated.
      Use ResourceSource variant instead.
      Modifies the effects of an Enchantment.
      Parameters:
      key - The ID of the enchantment
      builder - The enchantment builder
      source - The source of the enchantment
      registryInfoLookup - Lookup interface used to access registry information