register

protected final RegistryObject<T> register<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