ImpliedKeysRegistryBuilder

Builder for creating ImpliedKeysRegistry instances.

This builder allows adding implied keys with their mapping functions through a fluent API.

Type Parameters

I

The type of the source value from which implied keys can be derived.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun contains(registryKey: RegistryKey<*>): Boolean

Checks if this registry contains the specified key.

Link copied to clipboard
open operator override fun <T> get(registryKey: RegistryKey<out T>): (I) -> T

Gets the mapping function for the specified key.

Link copied to clipboard
infix fun <T> RegistryKey<in T>.implies(value: (I) -> T)

Adds an implied key with a custom mapping function.

Link copied to clipboard

Adds an implied key that maps directly to the source value.

Link copied to clipboard
open operator override fun iterator(): Iterator<ImplicationRegistration<I, *>>