set

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

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


fun set(type: DataComponentType.NonValued)

Sets the given type without a value.