runtime

runtime allows to install the java runtime. This module is used by install_minecraft_version(), so you don’t need to use it in your code most of the time.

install_jvm_runtime(jvm_version: str, minecraft_directory: Union[str, os.PathLike], callback: Dict[str, Callable] = None) -> NoReturn

Installs the given jvm runtime. callback is the same dict as in the install module.

get_jvm_runtimes() -> List[str]

Returns a list of all available runtimes.

get_executable_path(jvm_version: str, minecraft_directory: Union[str, os.PathLike]) -> Optional[str]

Returns the path to the executable. Returns None if none is found.