registering

protected final Lazy<T> registering<T extends TContent>(String path, Function1<RegistryKey<TContent>, T> factory)(source)

Adds a content to be registered in a Minecraft registry using Architectury API.

Parameters

path

The path of the identifier of the content to register

factory

The function creating the object to be registered


protected final PropertyDelegateProvider<Registrar<TContent>, Lazy<T>> registering<T extends TContent>(Function1<RegistryKey<TContent>, T> factory)(source)

Adds a content to be registered in a Minecraft registry using Architectury API. The path is derived from the property name (converted to camel_case).

Parameters

factory

The function creating the object to be registered