Package-level declarations

Types

Link copied to clipboard
data class PersistentKey<P : Any, C : Any>(val key: String, val type: PersistentDataType<P, C>)

Represents a persistent key that is used to store and retrieve data in a persistent data container.

Functions

Link copied to clipboard
@JvmName(name = "createList")
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asList(): ListPersistentDataType<P, C>
Link copied to clipboard
@JvmName(name = "createNullable")
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asNullable(): NullablePersistentDataType<P, C>
Link copied to clipboard
@JvmName(name = "createSet")
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asSet(): SetPersistentDataType<P, C>
Link copied to clipboard

Checks if the container contains a value associated with the specified PersistentKey.

Link copied to clipboard
operator fun <P : Any, C : Any> PersistentDataContainer.get(key: PersistentKey<P, C>): C?

Retrieves the value associated with the specified key from the persistent data container.

Link copied to clipboard

Removes the value associated with the specified key from this container.

Link copied to clipboard
operator fun <P : Any, C : Any> MutablePersistentDataContainer.set(key: PersistentKey<P, C>, value: C)

Sets the value associated with the specified persistent key in this container.

Link copied to clipboard
@JvmName(name = "createMap")
infix inline fun <KP : Any, KC : Any, VP : Any, VC : Any> PersistentDataType<KP, KC>.withMap(valueType: PersistentDataType<VP, VC>): MapPersistentDataType<KP, KC, VP, VC>