Fabric Registry Builder
public final class FabricRegistryBuilder<T, R extends MutableRegistry<T>>
Content copied to clipboard
Used to create custom registries, with specified registry attributes.
{@code * SimpleRegistryregistry = FabricRegistryBuilder.createSimple(String.class, new Identifier("registry_sync", "fabric_registry"))
* .attribute(RegistryAttribute.SYNCED)
* .buildAndRegister();
* }
Parameters
<T>
The type stored in the Registry
<R>
The registry type
Functions
attribute
Link copied to clipboard
buildAndRegister
Link copied to clipboard
createDefaulted
Link copied to clipboard
static FabricRegistryBuilder<T, DefaultedRegistry<T>> createDefaulted<T>(Class<T> type, Identifier registryId, Identifier defaultId)
Content copied to clipboard
Create a new FabricRegistryBuilder using a DefaultedRegistry, the registry has the MODDED attribute by default.
createSimple
Link copied to clipboard
static FabricRegistryBuilder<T, SimpleRegistry<T>> createSimple<T>(Class<T> type, Identifier registryId)
Content copied to clipboard
Create a new FabricRegistryBuilder using a SimpleRegistry, the registry has the MODDED attribute by default.
from
Link copied to clipboard
Sources
jvm source
Link copied to clipboard