getOrDefault

fun <T> Registry.getOrDefault(registryKey: RegistryKey<T>, default: T): T(source)

Retrieves value by this registryKey or returns default value if no association is present.