serializerDataFrom

Creates a SerializerData from a PersistentDataContainer.

This function retrieves all entries from the given container, and for each entry, it gets the primitive value using the AnyPersistentDataType. It then creates a SerializerEntry for each entry, using the key, the serializer type, and the value.

Return

a SerializerData containing all entries from the container

Author

Fantamomo

Since

1.0-SNAPSHOT

Parameters

container

the PersistentDataContainer to retrieve entries from

Throws

if the value cannot be retrieved from the container