Appearance
@loontail/minecraft-kit v0.8.14 / AssetIndexReference
Type alias: AssetIndexReference
ts
type AssetIndexReference: {
id: string;
sha1: string;
size: number;
totalSize: number;
url: string;
};Reference to the asset-index JSON file.
Example
ts
import type { AssetIndexReference } from "@loontail/minecraft-kit";
const ref: AssetIndexReference = resolved.manifest.assetIndex;
console.log(`assets-${ref.id}.json (${ref.size} bytes, sha1 ${ref.sha1})`);Type declaration
| Member | Type |
|---|---|
id | string |
sha1 | string |
size | number |
totalSize | number |
url | string |