Package net.minecraftforge.registries
Interface IForgeRegistry.AddCallback<V extends IForgeRegistryEntry<V>>
- All Known Implementing Classes:
GameData.BlockCallbacks
,GameData.ItemCallbacks
,GameData.PointOfInterestTypeCallbacks
,GameData.SerializerCallbacks
,NamespacedDefaultedWrapper.Factory
,NamespacedWrapper.Factory
- Enclosing interface:
- IForgeRegistry<V extends IForgeRegistryEntry<V>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface IForgeRegistry.AddCallback<V extends IForgeRegistryEntry<V>>
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, V obj, V oldObj)
-
Method Details
-
onAdd
void onAdd(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, V obj, @Nullable V oldObj)
-