storedValue
Creates a MutableProvider to which properties can delegate.
The MutableProvider will contain the non-persistent data of type T under key or the result of defaultValue if there is no data stored under that key.
inline fun <T : Any> storedValue(key: String, persistent: Boolean, noinline defaultValue: () -> T): MutableProvider<T>
Creates a MutableProvider to which properties can delegate.
The MutableProvider will contain the data of type T under key or the result of defaultValue if there is no data stored under that key.
Parameters
persistent
If the data should also be stored in the ItemStack.
Creates a MutableProvider to which properties can delegate.
The MutableProvider will contain the data of type T under key or null
if there is no data stored under that key.
Parameters
persistent
If the data should also be stored in the ItemStack.