setValue

operator fun setValue(thisRef: Any?, property: KProperty<*>, value: C)(source)

Sets the value associated with the given key and type in the container.

This operator function allows the delegate pattern to be used for setting values in the MutablePersistentDataContainer associated with a specific key and PersistentDataType.

Parameters

thisRef

The reference of the object that contains this property (nullable).

property

A descriptor for the property associated with this delegate. Used primarily as metadata to identify the property being modified.

value

The value to be set in the container for the given key and type.