Class NeoForgeRegistrar<T>

java.lang.Object
net.xun.lib.neoforge.api.registries.NeoForgeRegistrar<T>
All Implemented Interfaces:
Registrar<T>

public class NeoForgeRegistrar<T> extends Object implements Registrar<T>
  • Constructor Details

    • NeoForgeRegistrar

      public NeoForgeRegistrar(net.minecraft.core.Registry<T> registry, String modId)
  • Method Details

    • register

      public <U extends T> LazyRegistryReference<U> register(String name, Supplier<U> supplier)
      Description copied from interface: Registrar
      Register an entry with lazy initialization
      Specified by:
      register in interface Registrar<T>
    • register

      public void register(net.neoforged.bus.api.IEventBus eventBus)