install
install allows you to install minecraft.
install_minecraft_version(versionid: str, minecraft_directory: Union[str, os.PathLike],callback: Dict[str,Callable]=None) -> NoReturn
Installs a minecraft version into the given path. e.g. install_version(“1.14”,”/tmp/minecraft”). utils contains a function to get the default minecraft directory.
callback is a dict with functions that are called with arguments to get the progress. You can use it to show the progress to the user.
callback = {
"setStatus": some_function, #This function is called to set a text
"setProgress" some_function, #This function is called to set the progress.
"setMax": some_function, #This function is called to set to max progress.
}
Files that are already exists will not be replaced.