build

Finalizes the configuration of the persistent data and creates an immutable PersistentDataContainer instance.

This method collects the current state of the data from the builder and wraps it into a read-only PersistentDataContainer. Once called, the returned container represents the configured data and no further modifications can be made to it.

Return

An immutable PersistentDataContainer that contains the configured data.