public class ForgeConfigSpec
extends com.electronwill.nightconfig.core.utils.UnmodifiableConfigWrapper<com.electronwill.nightconfig.core.UnmodifiableConfig>
Modifier and Type | Class and Description |
---|---|
static class |
ForgeConfigSpec.BooleanValue |
static class |
ForgeConfigSpec.Builder |
private static class |
ForgeConfigSpec.BuilderContext |
static class |
ForgeConfigSpec.ConfigValue<T> |
static class |
ForgeConfigSpec.DoubleValue |
static class |
ForgeConfigSpec.EnumValue<T extends java.lang.Enum<T>> |
static class |
ForgeConfigSpec.IntValue |
static class |
ForgeConfigSpec.LongValue |
private static class |
ForgeConfigSpec.Range<V extends java.lang.Comparable<? super V>> |
static class |
ForgeConfigSpec.ValueSpec |
Modifier and Type | Field and Description |
---|---|
private com.electronwill.nightconfig.core.Config |
childConfig |
private static com.google.common.base.Joiner |
DOT_JOINER |
private static com.google.common.base.Splitter |
DOT_SPLITTER |
private boolean |
isCorrecting |
private java.util.Map<java.util.List<java.lang.String>,java.lang.String> |
levelComments |
private static com.google.common.base.Joiner |
LINE_JOINER |
private com.electronwill.nightconfig.core.UnmodifiableConfig |
values |
Modifier | Constructor and Description |
---|---|
private |
ForgeConfigSpec(com.electronwill.nightconfig.core.UnmodifiableConfig storage,
com.electronwill.nightconfig.core.UnmodifiableConfig values,
java.util.Map<java.util.List<java.lang.String>,java.lang.String> levelComments) |
Modifier and Type | Method and Description |
---|---|
int |
correct(com.electronwill.nightconfig.core.CommentedConfig config) |
int |
correct(com.electronwill.nightconfig.core.CommentedConfig config,
com.electronwill.nightconfig.core.ConfigSpec.CorrectionListener listener) |
private int |
correct(com.electronwill.nightconfig.core.UnmodifiableConfig spec,
com.electronwill.nightconfig.core.CommentedConfig config,
java.util.LinkedList<java.lang.String> parentPath,
java.util.List<java.lang.String> parentPathUnmodifiable,
com.electronwill.nightconfig.core.ConfigSpec.CorrectionListener listener,
boolean dryRun) |
com.electronwill.nightconfig.core.UnmodifiableConfig |
getSpec() |
com.electronwill.nightconfig.core.UnmodifiableConfig |
getValues() |
boolean |
isCorrect(com.electronwill.nightconfig.core.CommentedConfig config) |
boolean |
isCorrecting() |
boolean |
isLoaded() |
void |
save() |
void |
setConfig(com.electronwill.nightconfig.core.CommentedConfig config) |
private static java.util.List<java.lang.String> |
split(java.lang.String path) |
configFormat, contains, entrySet, equals, getRaw, hashCode, isEmpty, size, valueMap
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
apply, apply, contains, get, get, getByte, getByte, getByteOrElse, getByteOrElse, getChar, getChar, getCharOrElse, getCharOrElse, getEnum, getEnum, getEnum, getEnum, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getInt, getInt, getIntOrElse, getIntOrElse, getIntOrElse, getIntOrElse, getLong, getLong, getLongOrElse, getLongOrElse, getLongOrElse, getLongOrElse, getOptional, getOptional, getOptionalEnum, getOptionalEnum, getOptionalEnum, getOptionalEnum, getOptionalInt, getOptionalInt, getOptionalLong, getOptionalLong, getOrElse, getOrElse, getOrElse, getOrElse, getRaw, getShort, getShort, getShortOrElse, getShortOrElse, isNull, isNull
private java.util.Map<java.util.List<java.lang.String>,java.lang.String> levelComments
private com.electronwill.nightconfig.core.UnmodifiableConfig values
private com.electronwill.nightconfig.core.Config childConfig
private boolean isCorrecting
private static final com.google.common.base.Joiner LINE_JOINER
private static final com.google.common.base.Joiner DOT_JOINER
private static final com.google.common.base.Splitter DOT_SPLITTER
private ForgeConfigSpec(com.electronwill.nightconfig.core.UnmodifiableConfig storage, com.electronwill.nightconfig.core.UnmodifiableConfig values, java.util.Map<java.util.List<java.lang.String>,java.lang.String> levelComments)
public void setConfig(com.electronwill.nightconfig.core.CommentedConfig config)
public boolean isCorrecting()
public boolean isLoaded()
public com.electronwill.nightconfig.core.UnmodifiableConfig getSpec()
public com.electronwill.nightconfig.core.UnmodifiableConfig getValues()
public void save()
public boolean isCorrect(com.electronwill.nightconfig.core.CommentedConfig config)
public int correct(com.electronwill.nightconfig.core.CommentedConfig config)
public int correct(com.electronwill.nightconfig.core.CommentedConfig config, com.electronwill.nightconfig.core.ConfigSpec.CorrectionListener listener)
private int correct(com.electronwill.nightconfig.core.UnmodifiableConfig spec, com.electronwill.nightconfig.core.CommentedConfig config, java.util.LinkedList<java.lang.String> parentPath, java.util.List<java.lang.String> parentPathUnmodifiable, com.electronwill.nightconfig.core.ConfigSpec.CorrectionListener listener, boolean dryRun)
private static java.util.List<java.lang.String> split(java.lang.String path)