Skip to main content

get_libraries

Function get_libraries 

Source
pub fn get_libraries(
    options: &LaunchOptions,
    version_json: &MinecraftVersionJson,
) -> Vec<AssetItem>
Expand description

Build the full list of library/native items to include in the download bundle.

For each library in version_json.libraries:

  • Native (has a natives map): selects the platform-specific classifier and emits a NativeAsset.
  • Regular: applies Mojang rule evaluation via skip_library; emits an Asset. Falls back to deriving the URL from lib.url + Maven coordinate when downloads.artifact is absent.

Appends the client JAR and the serialised version JSON (as a CFile) at the end.