fabric

fabric contains functions for dealing with the Fabric modloader

get_all_minecraft_versions() List[FabricMinecraftVersion]

Returns all available Minecraft Versions for Fabric

Return type:

List[FabricMinecraftVersion]

get_stable_minecraft_versions() List[str]

Returns a list which only contains the stable Minecraft versions that supports Fabric

Return type:

List[str]

get_latest_minecraft_version() str

Returns the latest unstable Minecraft versions that supports Fabric. This could be a snapshot.

Return type:

str

get_latest_stable_minecraft_version() str

Returns the latest stable Minecraft version that supports Fabric

Return type:

str

is_minecraft_version_supported(version: str) bool

Checks if a Minecraft version supported by Fabric

Parameters:

version (str) – A vanilla version

Return type:

bool

get_all_loader_versions() List[FabricLoader]

Returns all loader versions

Return type:

List[FabricLoader]

get_latest_loader_version() str

Get the latest loader version

Return type:

str

get_latest_installer_version() str

Returns the latest installer version

Return type:

str

install_fabric(minecraft_version: str, minecraft_directory: str | PathLike, loader_version: str | None = None, callback: CallbackDict | None = None, java: str | PathLike | None = None) None

Installs the Fabric modloader.

Parameters:
  • minecraft_version (str) – A vanilla version that is supported by Fabric

  • minecraft_directory (str | PathLike) – The path to your Minecraft directory

  • loader_version (str | None) – The fabric loader version. If not given it will use the latest

  • callback (CallbackDict | None) – The same dict as for install_minecraft_version()

  • java (str | PathLike | None) – A Path to a custom Java executable

Return type:

None

Raises a UnsupportedVersion exception when the given minecraft version is not supported by Fabric.

View the source code of this module