Skip to content

Namespace LaunchPrecheck

🏭 Functions

checkLibraries

ts
checkLibraries(resource: MinecraftFolder, version: ResolvedVersion, option: LaunchOption): Promise<void>

Quick check if there are missed libraries.

Parameters

  • resource: MinecraftFolder
  • version: ResolvedVersion
  • option: LaunchOption

Return Type

  • Promise<void>

Defined in: packages/core/launch.ts:275

checkNatives

ts
checkNatives(resource: MinecraftFolder, version: ResolvedVersion, option: LaunchOption): Promise<void>

Ensure the native are correctly extracted in place.

It will check native root located in nativeRoot if it's presented. Or, it will use the <version-id>-native under version folder as native root to check.

This will automatically extract native if there is not native extracted.

Parameters

  • resource: MinecraftFolder The minecraft directory to extract native
  • version: ResolvedVersion
  • option: LaunchOption If the native root presented here, it will use the root here.

Return Type

  • Promise<void>

Defined in: packages/core/launch.ts:299

checkVersion

ts
checkVersion(resource: MinecraftFolder, version: ResolvedVersion, option: LaunchOption): Promise<void>

Quick check if Minecraft version jar is corrupted

Parameters

  • resource: MinecraftFolder
  • version: ResolvedVersion
  • option: LaunchOption

Return Type

  • Promise<void>

Defined in: packages/core/launch.ts:260

linkAssets

ts
linkAssets(resource: MinecraftFolder, version: ResolvedVersion, option: LaunchOption): Promise<void>

Link assets to the assets/virtual/legacy.

Parameters

  • resource: MinecraftFolder
  • version: ResolvedVersion
  • option: LaunchOption

Return Type

  • Promise<void>

Defined in: packages/core/launch.ts:232

🏷️ Variables

DEFAULT_PRECHECKS const

ts
DEFAULT_PRECHECKS: readonly LaunchPrecheck[] = ...

The default launch precheck. It will check version jar, libraries and natives.

Defined in: packages/core/launch.ts:222

Default const

ts
Default: readonly LaunchPrecheck[] = LaunchPrecheck.DEFAULT_PRECHECKS

Defined in: packages/core/launch.ts:227