Configuration for the Datapack Exporter instance.
PrivatedatapackReadonlydefinitionsConfiguration for the Datapack Exporter instance.
PrivatefieldPrivate ReadonlyloggerPrivate StaticdatapackPrivatecollectPrivatecomparePrivateevalGenerate a datapack export for an object by the object id.
The VlocityDatapackSObject to export.
Optionalcontext: { datapackType?: string; scope?: string }Optional context for the export.
The DatapackExapndResult containing the exported datapack.
PrivateexpandPrivategetPrivategetPrivate ReadonlyisPrivatenormalizePrivatesortSort record arrays at the expansion boundary, after their source keys have been finalized. Configured sort fields take precedence. Without configuration, a source key is preferred and Name is used when a source key is not available on every record. Other arrays retain their original order because their values may be intentionally positional.
PrivatewriteOptionaloptions: WriteToFilesystemOptions
Represents a Datapack Expander that expand an exported datapack into a list of files that can be written to the file system or a zip archive. The expander can be used to expand a single datapack or a list of datapacks.
Example