接口 ClearCallback<T>

所有超级接口:
RegistryCallback<T>
所有已知实现类:
NeoForgeRegistryCallbacks.BlockCallbacks, NeoForgeRegistryCallbacks.ItemCallbacks, NeoForgeRegistryCallbacks.PoiTypeCallbacks
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public non-sealed interface ClearCallback<T> extends RegistryCallback<T>
Fired when the registry is cleared. This is done before a registry is reloaded from client or server.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    onClear(Registry<T> registry, boolean full)
    Called when the registry is cleared before anything is done to the registry.
  • 方法详细资料

    • onClear

      void onClear(Registry<T> registry, boolean full)
      Called when the registry is cleared before anything is done to the registry.
      参数:
      registry - the registry
      full - if true, all entries in the registry will be cleared. if false, only integer IDs in the registry will be cleared.