withId

infix fun <T> T.withId(id: Identifier): RegistryObject<T>

Creates a RegistryObject.

Author

Oliver-makes-code (Emma)

Parameters

id

The Identifier to register under.