Class NeoForgeRegistryCallbacks.ItemCallbacks
java.lang.Object
net.neoforged.neoforge.registries.NeoForgeRegistryCallbacks.ItemCallbacks
- All Implemented Interfaces:
 AddCallback<Item>,ClearCallback<Item>,RegistryCallback<Item>
- Enclosing class:
 - NeoForgeRegistryCallbacks
 
static class NeoForgeRegistryCallbacks.ItemCallbacks
extends Object
implements AddCallback<Item>, ClearCallback<Item>
- 
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final NeoForgeRegistryCallbacks.ItemCallbacks - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
INSTANCE
 - 
BLOCK_TO_ITEM_MAP
 
 - 
 - 
Constructor Details
- 
ItemCallbacks
ItemCallbacks() 
 - 
 - 
Method Details
- 
onAdd
Description copied from interface:AddCallbackCalled when an entry is added to the registry.- Specified by:
 onAddin interfaceAddCallback<Item>- Parameters:
 registry- the registryid- the integer ID assigned to the entrykey- the resource key for the entryitem- the entry's value
 - 
onClear
Description copied from interface:ClearCallbackCalled when the registry is cleared before anything is done to the registry.- Specified by:
 onClearin interfaceClearCallback<Item>- Parameters:
 registry- the registryfull- iftrue, all entries in the registry will be cleared. iffalse, only integer IDs in the registry will be cleared.
 
 -