Package-level declarations

Functions

Link copied to clipboard
inline operator fun <T> PersistentDataContainer.get(key: Key): T?

Reads the value under key as T using CBF, or null if there is no value under key.

fun <T : Any> PersistentDataContainer.get(key: Key, serializer: BinarySerializer<T>): T?

Reads the value under key as T using serializer, or null if there is no value under key.

Link copied to clipboard
inline operator fun <T : Any> PersistentDataContainer.set(key: Key, obj: T?)

Writes obj under key as T using CBF. If obj is null, removes key from the container.

fun <T : Any> PersistentDataContainer.set(key: Key, serializer: BinarySerializer<T>, obj: T?)

Writes obj under key as T using serializer. If obj is null, removes key from the container.