get

open fun get(): C?(source)

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

This method allows access to the value in the PersistentDataContainer bound to the specified key and PersistentDataType. If the key does not exist in the container, the returned value will be null.

Return

The value associated with the given key and type, or null if the key does not exist.