withName

infix fun <T> T.withName(name: String): RegistryObject<T>

Creates a RegistryObject.

Author

Oliver-makes-code (Emma)

Parameters

name

The name to register under.