funcfind#

find(
component: str,
*,
game: GameDir | None = None,
cache_dir: Path | None = None,
) → JavaRuntime | None#

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

Parameters:
  • component (str) โ€“ The runtime component, such as java-runtime-delta.

  • game (GameDir | None) โ€“ The game directory. Defaults to GameDir.default.

  • cache_dir (Path | None) โ€“ The cache directory. Defaults to the per-user cache.

Returns:

The runtime, or None if it is not installed.

Return type:

JavaRuntime | None