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.

get_jvm_runtimes() List[str]

Returns a list of all jvm runtimes

Return type

List[str]

get_installed_jvm_runtimes(minecraft_directory: Union[str, PathLike]) List[str]

Returns a list of all installed jvm runtimes

Parameters

minecraft_directory (Union[str, PathLike]) – The path to your Minecraft directory

Return type

List[str]

install_jvm_runtime(jvm_version: str, minecraft_directory: Union[str, PathLike], callback: Optional[CallbackDict] = None) None

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

Parameters
  • jvm_version (str) – The Name of the JVM version

  • minecraft_directory (Union[str, PathLike]) – The path to your Minecraft directory

  • callback (Optional[CallbackDict]) – the same dict as for install_minecraft_version()

Raises
Return type

None

get_executable_path(jvm_version: str, minecraft_directory: Union[str, PathLike]) Optional[str]

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

Parameters
  • jvm_version (str) – The Name of the JVM version

  • minecraft_directory (Union[str, PathLike]) – The path to your Minecraft directory

Return type

Optional[str]

get_jvm_runtime_information(jvm_version: str) JvmRuntimeInformation

Returns some Information about a JVM Version

Parameters

jvm_version (str) – A JVM Version

Raises
Returns

A Dict with Information

Return type

JvmRuntimeInformation

View the source code of this module