getOrElse

inline fun <T> Registry.getOrElse(registryKey: RegistryKey<T>, block: () -> T): T(source)

Retrieves value by this registryKey or computes block and returns its value if no association is present.