package com.irtimaled.bbor.client.config;
-public class Setting<T> extends AbstractSetting {
+public class Setting<T> {
+ private final char type;
+ String comment;
+ String category;
+ String name;
private T value;
+ T defaultValue;
Setting(char type, T value) {
- super(type);
+ this.type = type;
this.value = value;
}
this.value = value;
}
- @Override
- Object getValue() {
- return value;
+ public void reset() {
+ this.value = this.defaultValue;
+ }
+
+ public char getType() {
+ return type;
}
+
+ public String getName() { return name; }
}