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: str | PathLike) List[str]
Returns a list of all installed jvm runtimes
- Parameters:
minecraft_directory (str | PathLike) – The path to your Minecraft directory
- Return type:
List[str]
- install_jvm_runtime(jvm_version: str, minecraft_directory: str | PathLike, callback: CallbackDict | None = 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 (str | PathLike) – The path to your Minecraft directory
callback (CallbackDict | None) – the same dict as for
install_minecraft_version()
- Raises:
VersionNotFound – The given JVM Version was not found
FileOutsideMinecraftDirectory – A File should be placed outside the given Minecraft directory
- Return type:
None
- get_executable_path(jvm_version: str, minecraft_directory: str | PathLike) str | None
Returns the path to the executable. Returns None if none is found.
- Parameters:
jvm_version (str) – The Name of the JVM version
minecraft_directory (str | PathLike) – The path to your Minecraft directory
- Return type:
str | None
- get_jvm_runtime_information(jvm_version: str) JvmRuntimeInformation
Returns some Information about a JVM Version
- Parameters:
jvm_version (str) – A JVM Version
- Raises:
VersionNotFound – The given JVM Version was not found
VersionNotFound – The given JVM Version is not available on this Platform
- Returns:
A Dict with Information
- Return type: