You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package net.minecraftforge.cauldron.configuration;
|
|
|
|
|
|
|
|
public class StringSetting extends Setting<String> {
|
|
|
|
private String value;
|
|
|
|
private ConfigBase config;
|
|
|
|
|
|
|
|
public StringSetting(ConfigBase config, String path, String def,
|
|
|
|
String description) {
|
|
|
|
super(path, def, description);
|
|
|
|
this.value = def;
|
|
|
|
this.config = config;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setValue(String value) {
|
|
|
|
config.set(path, this.value = value);
|
|
|
|
}
|
|
|
|
}
|