public class MemoryConfigurationOptions extends ConfigurationOptions
MemoryConfiguration
Modifier | Constructor and Description |
---|---|
protected |
MemoryConfigurationOptions(MemoryConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
MemoryConfiguration |
configuration()
Returns the
Configuration that this object is responsible for. |
MemoryConfigurationOptions |
copyDefaults(boolean value)
Sets if the
Configuration should copy values from its default
Configuration directly. |
MemoryConfigurationOptions |
pathSeparator(char value)
Sets the char that will be used to separate
ConfigurationSection s
This value does not affect how the Configuration is stored,
only in how you access the data. |
copyDefaults, equals, hashCode, indent, indent, pathSeparator
protected MemoryConfigurationOptions(MemoryConfiguration configuration)
public MemoryConfiguration configuration()
ConfigurationOptions
Configuration
that this object is responsible for.configuration
in class ConfigurationOptions
public MemoryConfigurationOptions pathSeparator(char value)
ConfigurationOptions
ConfigurationSection
s
This value does not affect how the Configuration
is stored,
only in how you access the data. The default value is '.'
pathSeparator
in class ConfigurationOptions
value
- Path separatorpublic MemoryConfigurationOptions copyDefaults(boolean value)
ConfigurationOptions
Configuration
should copy values from its default
Configuration
directly.
If this is true, all values in the default Configuration will be
directly copied, making it impossible to distinguish between values
that were set and values that are provided by default. As a result,
ConfigurationSection.contains(String)
will always
return the same value as ConfigurationSection.isSet(String)
. The default value is
true.
copyDefaults
in class ConfigurationOptions
value
- Whether or not defaults are directly copiedCopyright © 2023. All rights reserved.