classGameDir#
- class GameDir( )#
A
.minecraftdirectory and the layout of the files inside it.- Parameters:
path (Path | str) – The directory. It does not have to exist. A relative path is made absolute, so it stays valid if the working directory changes.
- path#
The absolute path of the directory.
- version(
- version_id: str,
Read an installed version.
- Parameters:
version_id (str) – The version id.
- Returns:
The parsed version.
- Raises:
UnsupportedError – The version is not installed.
- Return type: