funclist_versions#

list_versions(
session: Session | None = None,
*,
manifest_url: str = 'https://piston-meta.mojang.com/mc/game/version_manifest_v2.json',
) → list[VersionInfo]#

List every Minecraft version Mojang publishes, newest first.

Parameters:
  • session (Session | None) – The session to use. A temporary one is created if omitted.

  • manifest_url (str) – Where to read the manifest.

Returns:

The manifest’s entries.

Raises:

NetworkError – The manifest could not be fetched.

Return type:

list[VersionInfo]