Skip to content

Class: BrowserArchiveProxy ​

Defined in: packages/minerender/src/assets/source/archive/BrowserArchiveProxy.ts:6

Reads a resource-pack ZIP from a browser Blob or File for ArchiveAssetSource.

Implements ​

Constructors ​

Constructor ​

ts
new BrowserArchiveProxy(blob, id?): BrowserArchiveProxy;

Defined in: packages/minerender/src/assets/source/archive/BrowserArchiveProxy.ts:17

Opens a ZIP for asset lookup.

Parameters ​

ParameterTypeDescription
blobBlob-
id?stringCache identity for this content. Change it when the pack changes. A File supplies an identity from its name, size, and modification time when omitted.

Returns ​

BrowserArchiveProxy

Properties ​

PropertyModifierTypeDescriptionDefined in
_blobreadonlyBlob-packages/minerender/src/assets/source/archive/BrowserArchiveProxy.ts:8
_readerreadonlyZipReader<Blob>-packages/minerender/src/assets/source/archive/BrowserArchiveProxy.ts:9
id?readonlystringIdentifies the archive's content across sessions; undefined when it cannot be identified.packages/minerender/src/assets/source/archive/BrowserArchiveProxy.ts:10

Methods ​

getEntries() ​

ts
getEntries(): Promise<ArchiveEntry[]>;

Defined in: packages/minerender/src/assets/source/archive/BrowserArchiveProxy.ts:25

Returns ​

Promise<ArchiveEntry[]>

Implementation of ​

ArchiveProxy.getEntries