接口 BakeCallback<T>

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

@FunctionalInterface public non-sealed interface BakeCallback<T> extends RegistryCallback<T>
Fired when the registry is finished with all registration, or otherwise when it's frozen, in general, such as after snapshot injection.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    onBake(Registry<T> registry)
    Called when the registry is frozen, and all registration is finished.
  • 方法详细资料

    • onBake

      void onBake(Registry<T> registry)
      Called when the registry is frozen, and all registration is finished.
      参数:
      registry - the registry