Interface BakeCallback<T>

All Superinterfaces:
RegistryCallback<T>
All Known Implementing Classes:
NeoForgeRegistryCallbacks.AttributeCallbacks, NeoForgeRegistryCallbacks.BlockCallbacks
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 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBake(Registry<T> registry)
    Called when the registry is frozen, and all registration is finished.
  • Method Details

    • onBake

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