version.json是mojang提供的用於查詢單個版本資訊的清單檔案,其檔案名為<版本號>.json,通常儲存在.minecraft/versions/<版本号>資料夾下。用於啟動器下載某個特定的遊戲版本。
檔案下載
該檔案可以透過version_manifest.json檔案提供的URL下載。
檔案大體結構
version.json使用JSON結構來儲存及取出資料。下面列出了對其中主要JSON鍵值的解釋:
| 鍵 | 類型 | 說明 |
|---|---|---|
| arguments | Map | |
| assetIndex | Map | |
| assets | 字串 | |
| downloads | Map | |
| libraries | Map | |
| logging | Map | |
| mainClass | 字串 | |
| releaseTime | 字串 | |
| time | 字串 | |
| type | 字串 |