Package net.minecraftforge.userdev
Class ArgumentList
- java.lang.Object
-
- net.minecraftforge.userdev.ArgumentList
-
class ArgumentList extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ArgumentList.EntryValue
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.util.function.Supplier<java.lang.String[]>>
entries
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.Map<java.lang.String,ArgumentList.EntryValue>
values
-
Constructor Summary
Constructors Constructor Description ArgumentList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArg(boolean split, java.lang.String raw, java.lang.String value)
void
addRaw(java.lang.String arg)
static ArgumentList
from(java.lang.String... args)
java.lang.String
get(java.lang.String key)
java.lang.String[]
getArguments()
java.lang.String
getOrDefault(java.lang.String key, java.lang.String value)
boolean
hasValue(java.lang.String key)
void
put(java.lang.String key, java.lang.String value)
void
putLazy(java.lang.String key, java.lang.String value)
java.lang.String
remove(java.lang.String key)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
entries
private java.util.List<java.util.function.Supplier<java.lang.String[]>> entries
-
values
private java.util.Map<java.lang.String,ArgumentList.EntryValue> values
-
-
Method Detail
-
from
public static ArgumentList from(java.lang.String... args)
-
addRaw
public void addRaw(java.lang.String arg)
-
addArg
public void addArg(boolean split, java.lang.String raw, java.lang.String value)
-
getArguments
public java.lang.String[] getArguments()
-
hasValue
public boolean hasValue(java.lang.String key)
-
get
public java.lang.String get(java.lang.String key)
-
getOrDefault
public java.lang.String getOrDefault(java.lang.String key, java.lang.String value)
-
put
public void put(java.lang.String key, java.lang.String value)
-
putLazy
public void putLazy(java.lang.String key, java.lang.String value)
-
remove
public java.lang.String remove(java.lang.String key)
-
-