Class RegistrarManagerImpl.RegistryProviderImpl

java.lang.Object
dev.architectury.registry.registries.fabric.RegistrarManagerImpl.RegistryProviderImpl
All Implemented Interfaces:
dev.architectury.registry.registries.RegistrarManager.RegistryProvider
Enclosing class:
RegistrarManagerImpl

public static class RegistrarManagerImpl.RegistryProviderImpl extends Object implements dev.architectury.registry.registries.RegistrarManager.RegistryProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> dev.architectury.registry.registries.RegistrarBuilder<T>
    builder(Class<T> type, net.minecraft.resources.ResourceLocation registryId)
     
    <T> void
    forRegistry(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key, Consumer<dev.architectury.registry.registries.Registrar<T>> consumer)
     
    <T> dev.architectury.registry.registries.Registrar<T>
    get(net.minecraft.core.Registry<T> registry)
     
    <T> dev.architectury.registry.registries.Registrar<T>
    get(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryProviderImpl

      public RegistryProviderImpl(String modId)
  • Method Details

    • get

      public <T> dev.architectury.registry.registries.Registrar<T> get(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key)
      Specified by:
      get in interface dev.architectury.registry.registries.RegistrarManager.RegistryProvider
    • get

      public <T> dev.architectury.registry.registries.Registrar<T> get(net.minecraft.core.Registry<T> registry)
      Specified by:
      get in interface dev.architectury.registry.registries.RegistrarManager.RegistryProvider
    • forRegistry

      public <T> void forRegistry(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key, Consumer<dev.architectury.registry.registries.Registrar<T>> consumer)
      Specified by:
      forRegistry in interface dev.architectury.registry.registries.RegistrarManager.RegistryProvider
    • builder

      public <T> dev.architectury.registry.registries.RegistrarBuilder<T> builder(Class<T> type, net.minecraft.resources.ResourceLocation registryId)
      Specified by:
      builder in interface dev.architectury.registry.registries.RegistrarManager.RegistryProvider