Package net.minecraft.client.main
Class Main
java.lang.Object
net.minecraft.client.main.Main
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemptyStringToEmptyOptional
(String input) static void
private static OptionalInt
ofNullable
(Integer value) private static <T> T
parseArgument
(joptsimple.OptionSet set, joptsimple.OptionSpec<T> option) Gets the value of a specified command-line parameter from an OptionSet.private static boolean
stringHasValue
(String str) Returnstrue
if the given string is neither null nor empty.private static String
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
unescapeJavaArgument
-
emptyStringToEmptyOptional
-
ofNullable
-
parseArgument
@Nullable private static <T> T parseArgument(joptsimple.OptionSet set, joptsimple.OptionSpec<T> option) Gets the value of a specified command-line parameter from an OptionSet. If it doesn't exist, it returns the default value for the parameter. -
stringHasValue
Returnstrue
if the given string is neither null nor empty.
-