minified-launch/com.dervarex.minified.launch.arguments
JvmArgumentsParser
public final class JvmArgumentsParserMethods
ArrayList<String> parse(JsonObject, int, int)Parses the JVM Arguments from the given JSON object, applying rules and replacing RAM placeholders with the provided values.ArrayList<String> parse(JsonArray, int, int)Parses the JVM Arguments from the given JSON object, applying rules and replacing RAM placeholders with the provided values.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 | ||
|---|---|---|
arguments | JsonObject | The JSON object containing the JVM arguments, typically from the "default-user-jvm" field of a Minecraft version JSON |
minRamMb | int | Minimum ram in megabytes |
maxRamMb | int | Maximum 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 | ||
|---|---|---|
jvmArray | JsonArray | The JSON array containing the JVM arguments, typically from the "jvm" field of a Minecraft version JSON |
minRamMb | int | Minimum ram in megabytes |
maxRamMb | int | Maximum ram in megabytes |
| Returns | ||
ArrayList<String> | An arraylist of jvm args to apply when starting the game | |