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 TypeMethodDescriptionvoidonEntryAdded(int rawId, net.minecraft.resources.Identifier id, net.minecraft.world.item.Item object) Called when a new entry is added to the registry.static voidregister(net.minecraft.core.Registry<net.minecraft.world.item.Item> registry)
-
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:RegistryEntryAddedCallbackCalled when a new entry is added to the registry.- Specified by:
onEntryAddedin interfaceRegistryEntryAddedCallback<net.minecraft.world.item.Item>- Parameters:
rawId- the raw id of the entryid- the identifier of the entryobject- the object that was added
-