package mnm.mods.util.config;

/**
 * A wrapper that saves a default value.
 *
 * @param <T> The type to wrap
 */
public class Value<T> {

    protected T value;

    public Value() {}

    public Value(T val) {
        set(val);
    }

    /**
     * Sets the value.
     *
     * @param val The new value
     */
    public void set(T val) {
        this.value = val;
    }

    /**
     * Gets the value.
     *
     * @return The value
     */
    public T get() {
        return this.value;
    }

}

@@ -24,16 +24,43 @@
 onfig;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * A
@@ -523,10 +523,106 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return Objects.toString(this.value);%0A    %7D%0A
 %7D%0A

Add toString to Value (for debugging purposes)