RegistryUtil

protected constructor(modId: String, registry: RegistryKey<Registry<TContent>>)(source)
protected constructor(modId: String, registry: IForgeRegistry<TContent>)(source)

Creates a new RegistryUtil instance.

Parameters

TContent

The type of the content to register

modId

The namespace of the content to register.

registry

The registry to register the content in