package pro.gravit.launcher.config; import java.lang.reflect.Type; import java.nio.file.Path; public abstract class JsonConfigurable implements JsonConfigurableInterface { private transient final Type type; protected transient final Path configPath; public JsonConfigurable(Type type, Path configPath) { this.type = type; this.configPath = configPath; } @Override public Path getPath() { return configPath; } @Override public Type getType() { return type; } public abstract T getConfig(); public abstract T getDefaultConfig(); public abstract void setConfig(T config); }