BoundEntry

open class BoundEntry<P : Any, C : Any>(source)

Represents a binding between a key, its associated type, and a PersistentDataContainer.

This class provides functionality to access a value stored in a PersistentDataContainer using a specific key and PersistentDataType.

The bound entry is immutable and can only be used to retrieve values from the container.

Author

Fantamomo

Since

3.2-SNAPSHOT

Parameters

P

The primitive data type.

C

The complex data type.

Inheritors

Properties

Link copied to clipboard
val key: String

The key associated with the value in the container.

Link copied to clipboard

The type used to serialize/deserialize the value.

Functions

Link copied to clipboard
open fun get(): C?

Retrieves the value associated with the specified key and type from the container.

Link copied to clipboard
open operator fun getValue(thisRef: Any?, property: KProperty<*>): C?

Retrieves the value associated with the given key and type from the container.