Package net.minecraftforge.registries
Interface IForgeRegistry.AddCallback<V>
- All Known Implementing Classes:
GameData.BlockCallbacks
,GameData.ItemCallbacks
,GameData.PoiTypeCallbacks
,GameData.WrapperFactory
- Enclosing interface:
IForgeRegistry<V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback 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, or when a world is loaded.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAdd
(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V obj, V oldObj)
-
Method Details
-
onAdd
void onAdd(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V obj, @Nullable V oldObj)
-