public static class ForgeConfigSpec.ConfigValue<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.function.Supplier<T> |
defaultSupplier |
private ForgeConfigSpec.Builder |
parent |
private java.util.List<java.lang.String> |
path |
private ForgeConfigSpec |
spec |
Constructor and Description |
---|
ConfigValue(ForgeConfigSpec.Builder parent,
java.util.List<java.lang.String> path,
java.util.function.Supplier<T> defaultSupplier) |
Modifier and Type | Method and Description |
---|---|
T |
get() |
java.util.List<java.lang.String> |
getPath() |
protected T |
getRaw(com.electronwill.nightconfig.core.Config config,
java.util.List<java.lang.String> path,
java.util.function.Supplier<T> defaultSupplier) |
ForgeConfigSpec.Builder |
next() |
void |
save() |
void |
set(T value) |
private final ForgeConfigSpec.Builder parent
private final java.util.List<java.lang.String> path
private final java.util.function.Supplier<T> defaultSupplier
private ForgeConfigSpec spec
ConfigValue(ForgeConfigSpec.Builder parent, java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier)
public java.util.List<java.lang.String> getPath()
public T get()
protected T getRaw(com.electronwill.nightconfig.core.Config config, java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier)
public ForgeConfigSpec.Builder next()
public void save()
public void set(T value)