Package net.minecraftforge.registries
Interface IForgeRegistry.AddCallback<V extends IForgeRegistryEntry<V>>
-
- All Known Implementing Classes:
GameData.BlockCallbacks
,GameData.ItemCallbacks
,GameData.PointOfInterestTypeCallbacks
,GameData.SerializerCallbacks
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAdd(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, V obj, V oldObj)
-
-
-
Method Detail
-
onAdd
void onAdd(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, V obj, @Nullable V oldObj)
-
-