provideOrNull
fun <T> ProviderRegistry.provideOrNull(registryKey: RegistryKey<out T>): RegisteredValueProvider<T>?(source)
Gets the provider associated with the specified registryKey, or returns null if no association is present.
Receiver
The ProviderRegistry in which to look up the registryKey.
Return
The RegisteredValueProvider associated with the registryKey, or null if the registryKey is not present.
Parameters
registryKey
The RegistryKey to get the provider for.
Type Parameters
T
The type of value provided by the provider.