Builder

class Builder

A builder for DataComponentMap DataComponentMaps.

Functions

Link copied to clipboard
Link copied to clipboard
fun set(type: DataComponentType.NonValued): DataComponentMap.Builder

Sets the given type without a value.

operator fun <T : Any> set(type: DataComponentType.Valued<T>, value: T): DataComponentMap.Builder
operator fun <T : Any> set(type: DataComponentType<T>, value: T): DataComponentMap.Builder

Sets the value of the given type to the given value.