natives

natives contains a function for extracting natives libraries to a specific folder

extract_natives(versionid: str, path: str | PathLike, extract_path: str) None

Extract all native libraries from a version into the given directory. The directory will be created, if it does not exist.

Parameters:
  • version – The Minecraft version

  • minecraft_directory – The path to your Minecraft directory

  • callback – The same dict as for install_minecraft_version()

  • versionid (str)

  • path (str | PathLike)

  • extract_path (str)

Raises:
Return type:

None

The natives are all extracted while installing. So you don’t need to use this function in most cases.

View the source code of this module