build Persistent Data Container
inline fun buildPersistentDataContainer(action: MutablePersistentDataContainer.() -> Unit): PersistentDataContainer(source)
Builds a new instance of PersistentDataContainer using the specified configuration action.
This method allows the caller to configure a mutable container using the MutablePersistentDataContainer interface and then returns an immutable PersistentDataContainer with the configured data.
Return
A newly built PersistentDataContainer based on the configuration provided in the action.
Author
Fantamomo
Since
1.0-SNAPSHOT
Parameters
action
A functional block defining the configuration of a MutablePersistentDataContainer.