Interface AddCallback<T>
- All Superinterfaces:
RegistryCallback<T>
- All Known Implementing Classes:
NeoForgeRegistryCallbacks.BlockCallbacks,NeoForgeRegistryCallbacks.ItemCallbacks,NeoForgeRegistryCallbacks.PoiTypeCallbacks
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Fired when objects are added to the registry. This will fire when the registry is rebuilt
on the client side from a server side synchronization.
-
Method Summary
-
Method Details
-
onAdd
Called when an entry is added to the registry.- Parameters:
registry- the registryid- the integer ID assigned to the entrykey- the resource key for the entryvalue- the entry's value
-