minified-launch/com.dervarex.minified.launch.launch.modding.forge.api
ForgeVersionJson
classSource
public class ForgeVersionJsonConstructors
public ForgeVersionJson()Methods
String getVersionId(String)JsonFile getVersionJson(Path, String)Path getVersionJsonPath(Path, String)public static String getVersionId(String loaderVersion)public static JsonFile getVersionJson(Path gameDir, String loaderVersion) throws IOException| Parameters | ||
|---|---|---|
gameDir | Path | The game directory |
loaderVersion | String | The forge loader version, for example 1.21.11-61.1.8 |
| Returns | ||
JsonFile | The version JSON for the given forge loader version | |
| Throws | ||
IOException | If an I/O error occurs while fetching the version JSON | |
public static Path getVersionJsonPath(Path gameDir, String loaderVersion)