Class FabricRegistryBuilder<T,R extends MutableRegistry<T>>

java.lang.Object
net.fabricmc.fabric.api.event.registry.FabricRegistryBuilder<T,R>
Type Parameters:
T - The type stored in the Registry
R - The registry type

public final class FabricRegistryBuilder<T,R extends MutableRegistry<T>> extends Object
Used to create custom registries, with specified registry attributes.
 
  SimpleRegistry<String> registry = FabricRegistryBuilder.createSimple(String.class, new Identifier("registry_sync", "fabric_registry"))
 													.attribute(RegistryAttribute.SYNCED)
 													.buildAndRegister();