registering

protected inline fun <T : TContent> registering(path: String, crossinline factory: (RegistryKey<TContent>) -> T): Lazy<T>(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 inline fun <T : TContent> registering(crossinline factory: (RegistryKey<TContent>) -> T): PropertyDelegateProvider<Registrar<TContent>, Lazy<T>>(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