var fabricInstaller =newFabricInstaller(newHttpClient());var versions =awaitfabricInstaller.GetSupportedVersionNames();foreach (var version in versions){Console.WriteLine(version);}
Get Fabric versions
var fabricInstaller =newFabricInstaller(newHttpClient());var versions =awaitfabricInstaller.GetLoaders("1.20.6");foreach (var version in versions){Console.WriteLine(version.Version);}
Install
var path =newMinecraftPath();var launcher =newMinecraftLauncher(path);var fabricInstaller =newFabricInstaller(newHttpClient());// install the latest fabric loader for 1.20.4var versionName =awaitfabricInstaller.Install("1.20.4", path);// install the specific fabric loadervar versionName =awaitfabricInstaller.Install("1.20.4","0.16.0", path);