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: Union[str, PathLike], loader_version: Optional[str] = None, callback: Optional[CallbackDict] = None, java: Optional[Union[str, PathLike]] = None) None

Installs the Fabric modloader.

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

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

  • loader_version (Optional[str]) – The fabric loader version. If not given it will use the latest

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

  • java (Optional[Union[str, PathLike]]) – 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