Find all features provided by McVersionsLib to retrieve NeoForge modding API data.
To retrieve all NeoForge versions, you can call GetAllNeoForgeVersions
function from the McNeoForgeVersions
class.
This function returns all available NeoForge versions.
List<string> availableNeoForgeVersions = McNeoForgeVersions.GetAllNeoForgeVersions();
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
Example : "20.2.45-beta"
WebException
: Cannot retrieve NeoForge versions data
VersionNotFoundException
: No available NeoForge version for the targetted Minecraft version
To retrieve all NeoForge versions for a specific Minecraft version, you can call GetAllNeoForgeVersions
function from the McNeoForgeVersions
class.
This function returns all available NeoForge versions for the targetted Minecraft version.
List<string> availableNeoForgeVersions = McNeoForgeVersions.GetAllNeoForgeVersions("1.20.4");
targetedMcVersion
: string
, targetted Minecraft version
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
Example : "20.4.60-beta"
WebException
: Cannot retrieve NeoForge versions data
VersionNotFoundException
: No available NeoForge version for the targetted Minecraft version
To retrieve latest NeoForge version for a specific Minecraft version, you can call GetLatestNeoForgeVersion
function from the McNeoForgeVersions
class.
This function returns latest NeoForge version for the targetted Minecraft version.
string latestNeoForgeVersions = McForgeVersions.GetLatestMinecraftForgeVersion("1.19.3");
targetedMcVersion
: string
, targetted Minecraft version
string
: Latest NeoForge version for the targeted Minecraft version
Example : "20.4.67-beta"
WebException
: Cannot retrieve NeoForge versions data
If you want to know the version number of NeoForge for a Minecraft version, you can call GetNeoForgeVersionFromMinecraftVersion
function from the McNeoForgeUtils
class.
This function doesn’t check if a NeoForge version exists for the specified Minecraft version.
string neoForgeVersion = McNeoForgeUtils.GetNeoForgeVersionFromMinecraftVersion("1.20.4");
mcVersion
: string
, targeted Minecraft version
string
: NeoForge version number for the specified Minecraft version
Example : "20.4"