Class NeoForgeRegister<T>

java.lang.Object
net.xun.lib.common.api.registries.Register<T>
net.xun.lib.neoforge.api.registries.NeoForgeRegister<T>
All Implemented Interfaces:
Iterable<T>

public class NeoForgeRegister<T> extends Register<T>
  • Constructor Details

    • NeoForgeRegister

      public NeoForgeRegister(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String namespace)
  • Method Details

    • register

      public void register()
      Description copied from class: Register
      Performs final registration by binding all holders to the actual registry.

      This should be called during mod initialization after the registry is available. Note: Certain registry types are bound immediately and skip this step.

      Overrides:
      register in class Register<T>
    • bind

      protected <I extends T> void bind(RegistryHolder<T,I> holder)
      Description copied from class: Register
      Binds a registry holder to the actual registry entry.
      Specified by:
      bind in class Register<T>
      Type Parameters:
      I - The concrete type of the registered object
      Parameters:
      holder - The registry holder to bind