setTo

fun setTo(container: PersistentDataContainer, key: NamespacedKey)

Sets a value into the provided PersistentDataContainer using a specified key.

Parameters

container

The PersistentDataContainer where the value will be stored.

key

The NamespacedKey used to store and retrieve the value.