Interface DefaultItemComponentEvents.ModifyConsumer

Enclosing class:
DefaultItemComponentEvents
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 DefaultItemComponentEvents.ModifyConsumer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modify(net.minecraft.core.component.DataComponentMap.Builder builder, net.minecraft.core.HolderLookup.Provider lookupProvider, net.minecraft.world.item.Item item)
    A consumer used for modifying the provided DataComponentMap.Builder.
  • Method Details

    • modify

      void modify(net.minecraft.core.component.DataComponentMap.Builder builder, net.minecraft.core.HolderLookup.Provider lookupProvider, net.minecraft.world.item.Item item)
      A consumer used for modifying the provided DataComponentMap.Builder.
      Parameters:
      builder - The data component builder for the item.
      lookupProvider - A lookup provider to obtain holders and holder sets from registries.
      item - The item to modify.