Voxelum / minecraft-launcher-core-node

Provide packages to install Minecraft, launch Minecraft and more to build launcher with NodeJs/Electron!
https://docs.xmcl.app/en/core/
MIT License
174 stars 25 forks source link

docs: updated to latest version #213

Closed JoCat closed 2 years ago

JoCat commented 2 years ago

or as an option:

import { getVersionList, MinecraftVersion, install } from "@xmcl/installer";
import { MinecraftLocation } from "@xmcl/core";

const minecraft: MinecraftLocation;
const { versions } = await getVersionList();
const aVersion: MinecraftVersion = versions[0]; // i just pick the first version in list here
await install(aVersion, minecraft);
JoCat commented 2 years ago

sorry, I accidentally confused the branch, but I think you will deal with these yourself)