28 lines
528 B
Java
28 lines
528 B
Java
|
package pm.j4.petroleum.util.module.option;
|
||
|
|
||
|
import com.google.gson.JsonElement;
|
||
|
|
||
|
/**
|
||
|
* The type Configuration option.
|
||
|
*
|
||
|
*/
|
||
|
public abstract class ConfigurationOption {
|
||
|
private final String description;
|
||
|
|
||
|
protected ConfigurationOption(String description) {
|
||
|
this.description = description;
|
||
|
}
|
||
|
|
||
|
public final String getDescription() {
|
||
|
return this.description;
|
||
|
}
|
||
|
|
||
|
public abstract String getStringValue();
|
||
|
public abstract void fromJson(JsonElement e);
|
||
|
public abstract JsonElement toJson();
|
||
|
|
||
|
public void update() {
|
||
|
|
||
|
}
|
||
|
}
|