StringArray in Configs
This commit is contained in:
parent
61cf9711a6
commit
f0c77abba6
1 changed files with 14 additions and 0 deletions
|
@ -5,6 +5,8 @@ import ru.bclib.config.ConfigKeeper.Entry;
|
|||
import ru.bclib.config.ConfigKeeper.FloatRange;
|
||||
import ru.bclib.config.ConfigKeeper.IntegerRange;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PathConfig extends Config {
|
||||
public PathConfig(String modID, String group, boolean autoSync, boolean diffContent) {
|
||||
super(modID, group, autoSync, diffContent);
|
||||
|
@ -95,6 +97,18 @@ public class PathConfig extends Config {
|
|||
return this.setBoolean(createKey(category, key), value);
|
||||
}
|
||||
|
||||
public List<String> getStringArray(String category, String key, List<String> defaultValue) {
|
||||
return this.getStringArray(createKey(category, key), defaultValue);
|
||||
}
|
||||
|
||||
public List<String> getStringArray(String category, String key) {
|
||||
return this.getStringArray(createKey(category, key));
|
||||
}
|
||||
|
||||
public boolean setStringArray(String category, String key, List<String> value) {
|
||||
return this.setStringArray(createKey(category, key), value);
|
||||
}
|
||||
|
||||
// From Root
|
||||
|
||||
public String getStringRoot(String key, String defaultValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue