set

abstract operator fun <T : Any> set(key: NamespacedKey, data: PersistentDataType<T, T>, value: T)

Sets a value in the container with an explicit PersistentDataType.

Parameters

key

the key to store the value under

data

the data type descriptor

value

the value to store