classinternalSource
public final class JvmArgumentsParser

Methods

public static ArrayList<String> parse(JsonObject arguments, int minRamMb, int maxRamMb)
Parses the JVM Arguments from the given JSON object, applying rules and replacing RAM placeholders with the provided values.
Parameters
argumentsJsonObjectThe JSON object containing the JVM arguments, typically from the "default-user-jvm" field of a Minecraft version JSON
minRamMbintMinimum ram in megabytes
maxRamMbintMaximum ram in megabytes
Returns
ArrayList<String>An arraylist of jvm args to apply when starting the game
public static ArrayList<String> parse(JsonArray jvmArray, int minRamMb, int maxRamMb)
Parses the JVM Arguments from the given JSON object, applying rules and replacing RAM placeholders with the provided values.
Parameters
jvmArrayJsonArrayThe JSON array containing the JVM arguments, typically from the "jvm" field of a Minecraft version JSON
minRamMbintMinimum ram in megabytes
maxRamMbintMaximum ram in megabytes
Returns
ArrayList<String>An arraylist of jvm args to apply when starting the game