Class BlockItemTracker

java.lang.Object
net.fabricmc.fabric.impl.registry.sync.trackers.vanilla.BlockItemTracker
All Implemented Interfaces:
RegistryEntryAddedCallback<net.minecraft.world.item.Item>

public final class BlockItemTracker extends Object implements RegistryEntryAddedCallback<net.minecraft.world.item.Item>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEntryAdded(int rawId, net.minecraft.resources.Identifier id, net.minecraft.world.item.Item object)
    Called when a new entry is added to the registry.
    static void
    register(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • register

      public static void register(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry)
    • onEntryAdded

      public void onEntryAdded(int rawId, net.minecraft.resources.Identifier id, net.minecraft.world.item.Item object)
      Description copied from interface: RegistryEntryAddedCallback
      Called when a new entry is added to the registry.
      Specified by:
      onEntryAdded in interface RegistryEntryAddedCallback<net.minecraft.world.item.Item>
      Parameters:
      rawId - the raw id of the entry
      id - the identifier of the entry
      object - the object that was added