接口 IForgeRegistry.AddCallback<V>
- 所有已知实现类:
GameData.BlockCallbacks
,GameData.ItemCallbacks
,GameData.PoiTypeCallbacks
,GameData.WrapperFactory
- 封闭接口:
IForgeRegistry<V>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
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.
-
方法概要
修饰符和类型方法说明void
onAdd
(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V obj, V oldObj)
-
方法详细资料
-
onAdd
void onAdd(IForgeRegistryInternal<V> owner, RegistryManager stage, int id, ResourceKey<V> key, V obj, @Nullable V oldObj)
-