Find all features provided by McVersionsLib to retrieve Fabric modding API data.
To retrieve all supported Minecraft versions, you can call GetAllSupportedMinecraftVersions
function from the McFabricVersions
class.
This function returns all supported Minecraft versions by Fabric.
List<string> supportedMcVersions = McFabricVersions.GetAllSupportedMinecraftVersions();
forceRetrievingData
(optional) : bool
, force data retrieving even if data have been already retrieved with a previous function call (false
by default).
List<string>
: List of strings
Examples : "1.19.3", "23w05a"
WebException
: Cannot retrieve Fabric versions data
To retrieve all supported Minecraft stable versions (mainly officials releases), you can call GetAllSupportedStableMinecraftVersions
function from the McFabricVersions
class.
This function returns all supported Minecraft stable versions by Fabric.
List<string> supportedMcVersions = McFabricVersions.GetAllSupportedStableMinecraftVersions();
forceRetrievingData
(optional) : bool
, force data retrieving even if data have been already retrieved with a previous function call (false
by default).
List<string>
: List of strings
Examples : "1.19.3", "1.18.2"
WebException
: Cannot retrieve Fabric versions data
To retrieve all supported Minecraft unstable versions (mainly snapshots), you can call GetAllSupportedUnstableMinecraftVersions
function from the McFabricVersions
class.
This function returns all supported Minecraft unstable versions by Fabric.
List<string> supportedMcVersions = McFabricVersions.GetAllSupportedUnstableMinecraftVersions();
forceRetrievingData
(optional) : bool
, force data retrieving even if data have been already retrieved with a previous function call (false
by default).
List<string>
: List of strings
Examples : "1.19.3", "1.18.2"
WebException
: Cannot retrieve Fabric versions data
To retrieve all Fabric’s loader versions, you can call GetAllLoaderVersions
function from the McFabricVersions
class.
This function returns all Fabric’s loader versions.
List<string> loaderVersions = McFabricVersions.GetAllLoaderVersions();
List<string>
: List of strings
Examples : "0.14.14", "0.13.1"
WebException
: Cannot retrieve Fabric versions data
To retrieve all Fabric’s loader versions for a specific Minecraft version, you can call GetAllLoaderVersions
function from the McFabricVersions
class.
This function returns the C# representation of a Fabric version JSON.
List<string> loaderVersions = McFabricVersions.GetAllLoaderVersions("1.19.3");
targetedMcVersion
: string
, targetted Minecraft version
List<string>
: List of strings
Examples : "0.14.14", "0.13.1"
WebException
: Cannot retrieve Fabric versions data
VersionNotFoundException
: No available Fabric version for the targetted Minecraft version
To retrieve loader and mappings details for a specific Minecraft and loader version, you can call GetLoaderAndMappingsDetails
function from the McFabricVersions
class with one argument : the targetted Minecraft version.
This function returns all Fabric’s loader versions for the targetted Minecraft version.
McFabricVersionDetailJsonEntry loaderMappingsDetails = McFabricVersions.GetLoaderAndMappingsDetails("1.19.3", "0.14.14");
targetedMcVersion
: string
, targetted Minecraft version
targetedLoaderVersion
: string
, targetted Fabric loader version
McFabricVersionDetailJsonEntry
: C# representation of a Fabric version JSON with all details
WebException
: Cannot retrieve Fabric versions data
VersionNotFoundException
: No available Fabric version for the targetted Minecraft version
VersionNotFoundException
: The targeted loader version for the targeted Minecraft was not found