Class VersionInfo
java.lang.Object
org.moddingx.launcherlib.launcher.VersionInfo
Launcher metadata for one specific minecraft version.
-
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo(LauncherCache cache, com.google.gson.JsonObject json, String id) -
Method Summary
Modifier and TypeMethodDescriptionassets()Gets theAssetIndexto use with this version.client()Downloads the client.net.neoforged.srgutils.IMappingFileGets the client mappings for this version.id()Gets this versions name.intjava()Gets the java version required to run this minecraft version.Gets all libraries required to launch the game.net.neoforged.srgutils.IMappingFileGets the merged mappings for this version.Gets the release time of this minecraft version.server()Downloads the server.net.neoforged.srgutils.IMappingFileGets the server mappings for this version.type()Gets the type of this minecraft version.
-
Constructor Details
-
VersionInfo
public VersionInfo(LauncherCache cache, com.google.gson.JsonObject json, String id) throws IOException - Throws:
IOException
-
-
Method Details
-
id
Gets this versions name. -
type
Gets the type of this minecraft version. -
releaseTime
Gets the release time of this minecraft version. -
java
public int java()Gets the java version required to run this minecraft version. -
client
-
server
-
libraries
-
assets
Gets theAssetIndexto use with this version. -
clientMap
public net.neoforged.srgutils.IMappingFile clientMap()Gets the client mappings for this version.- Throws:
NoSuchElementException- if there are no mappings for this version.
-
serverMap
public net.neoforged.srgutils.IMappingFile serverMap()Gets the server mappings for this version.- Throws:
NoSuchElementException- if there are no mappings for this version.
-
mergedMap
public net.neoforged.srgutils.IMappingFile mergedMap()Gets the merged mappings for this version.- Throws:
NoSuchElementException- if there are no mappings for this version.
-