register

abstract fun register(name: String, entrySupplier: Supplier<T>): RegistrySupplier<T>

Registers a game object. On fabric, will use direct registration. On (Neo)Forge, will use deferred registration under the hood.

Author

fzzyhmstrs

Since

0.5.9

Parameters

name

The id path of the object. The namespace is supplied when creating the registrar.