Java#

Find Java runtimes from the official launcher, or download Mojang’s.

Runtimes#

find

Find a runtime in the official launcher or the download cache.

find_all

Find every known runtime that is installed, in order of preference.

download

Download a Mojang runtime into the cache, never the launcher's directory.

required_for

Return the runtime component a version needs.

JavaRuntime

An installed Java runtime.

Locations#

official_runtime_dirs

List the directories where the official launcher keeps Java runtimes.

platform_key

Return Mojang's name for this platform, such as windows-x64.