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
Modifier and TypeFieldDescription(package private) static final NeoForgeRegistryCallbacks.ItemCallbacks
-
Constructor Summary
-
Method Summary
-
Field Details
-
INSTANCE
-
BLOCK_TO_ITEM_MAP
-
-
Constructor Details
-
ItemCallbacks
ItemCallbacks()
-
-
Method Details
-
onAdd
Description copied from interface:AddCallback
Called when an entry is added to the registry.- Specified by:
onAdd
in 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:ClearCallback
Called when the registry is cleared before anything is done to the registry.- Specified by:
onClear
in 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.
-