getRegistry

abstract fun <E> getRegistry(key: ResourceKey<out Registry<E>>): Registry<E>?

Gets a registry from this registry holder with the given key.

Return

the registry, if present

Parameters

E

the registry type

key

the registry key