Class ForgeRegistrationFactory

java.lang.Object
foundry.veil.forge.platform.ForgeRegistrationFactory
All Implemented Interfaces:
RegistrationProvider.Factory

@Internal public class ForgeRegistrationFactory extends Object implements RegistrationProvider.Factory
  • Constructor Details

    • ForgeRegistrationFactory

      public ForgeRegistrationFactory()
  • Method Details

    • create

      public <T> RegistrationProvider<T> create(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> resourceKey, String modId)
      Description copied from interface: RegistrationProvider.Factory
      Specified by:
      create in interface RegistrationProvider.Factory
      Type Parameters:
      T - the operand of the provider
      Parameters:
      resourceKey - the ResourceKey of the registry to create this provider for
      modId - the mod id for which the provider will register objects
      Returns:
      the provider