classinternalSource
@API(status = INTERNAL)
public final class LegacyForgeGameJar

Forge up to 1.5.2 changes the Minecraft classes themselves, which fails with the signed vanilla jar So these versions get their own game jar without the signature, with the mods of Forge copied over it

Fields

public static final String JAR_MODS_KEY = "minified:jarMods"
Set on the version JSON for Forge up to 1.5.1, the relative paths of the zips that have to be copied into the game jar

Methods

public static void prepare(JsonObject loaderProfile, LaunchConfiguration config)
Builds the game jar returned by resolve, if the version needs one. Has to run after the vanilla jar was downloaded
Parameters
loaderProfileJsonObject
configLaunchConfiguration
public static Path resolve(JsonObject loaderProfile, LaunchConfiguration config)
Parameters
loaderProfileJsonObjectThe Forge version JSON
configLaunchConfiguration
Returns
PathThe game jar to use instead of the vanilla one, or null if the vanilla one works