register

protected fun <T : TContent> register(path: String, factory: (RegistryKey<TContent>) -> T): RegistryObject<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