Skip to content

@pumpkin-plugins/bedrock-addon-manager API / packs/entries / buildEntries

Function: buildEntries() ​

buildEntries(scanned, config, reachableUrl?): BuiltEntries

Defined in: packages/bedrock-addon-manager/src/packs/entries.ts:60

Applies the overrides, drops disabled packs and duplicates, and orders the rest by order (lowest first, default 0) and then by file name. Warns about overrides that match no pack and, when the web server is off, about packs that have no download_url.

Parameters ​

scanned ​

ScannedPack[]

config ​

overrides ​

TableValues<{ addon_pack: Field<boolean | undefined>; content_id: Field<string | undefined>; content_key: Field<string | undefined>; download_url: Field<string | undefined>; enabled: Field<boolean | undefined>; has_scripts: Field<boolean | undefined>; order: Field<number | undefined>; rtx_enabled: Field<boolean | undefined>; sub_pack_name: Field<string | undefined>; }> = ...

packs ​

SectionValues<{ directory: Field<string>; force: Field<boolean>; }> = ...

web ​

SectionValues<{ bind: Field<string>; enabled: Field<boolean>; port: Field<number>; port_forwarding: Field<boolean>; public_url: Field<string>; }> = ...

reachableUrl? ​

string

Where port forwarding made the web server reachable, used when public_url is empty.

Returns ​

BuiltEntries

pumpkin-plugins documentation