storeData

inline fun <T> storeData(key: String, value: T?, persistent: Boolean = false)

Stores value as the reified type T under the given key.

Prefer using MutableProviders via storedValue instead.

Parameters

persistent

If the data should also be stored in the ItemStack.


fun <T> storeData(type: KType, key: String, value: T?, persistent: Boolean = false)

Stores value as the given type under the given key.

Prefer using MutableProviders via storedValue instead.

Parameters

persistent

If the data should also be stored in the ItemStack.