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
-
Method Summary
Modifier and TypeMethodDescription<T> dev.architectury.registry.registries.RegistrarBuilder<T>
<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)
-
Constructor Details
-
RegistryProviderImpl
-
-
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 interfacedev.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 interfacedev.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 interfacedev.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 interfacedev.architectury.registry.registries.RegistrarManager.RegistryProvider
-