接口 ClearCallback<T>
- 所有超级接口:
RegistryCallback<T>
- 所有已知实现类:
NeoForgeRegistryCallbacks.BlockCallbacks
,NeoForgeRegistryCallbacks.ItemCallbacks
,NeoForgeRegistryCallbacks.PoiTypeCallbacks
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Fired when the registry is cleared.
This is done before a registry is reloaded from client or server.
-
方法概要
-
方法详细资料
-
onClear
Called when the registry is cleared before anything is done to the registry.- 参数:
registry
- the registryfull
- iftrue
, all entries in the registry will be cleared. iffalse
, only integer IDs in the registry will be cleared.
-