Interface IRegistrationFactory

All Known Implementing Classes:
NeoForgeRegistrationHelper

public interface IRegistrationFactory
Creates Registrars for arbitrary Minecraft registries. The Fabric implementation registers entries eagerly; the NeoForge implementation defers them onto DeferredRegisters that are flushed onto the mod event bus by the loader entrypoint.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Registrar<T>
    create(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, String modId)
     
  • Method Details

    • create

      <T> Registrar<T> create(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, String modId)