StringArray in Configs

This commit is contained in:
Frank 2021-12-18 03:10:15 +01:00
parent 61cf9711a6
commit f0c77abba6

View file

@ -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) {