Package org.bukkit.configuration
Class MemoryConfigurationOptions
java.lang.Object
org.bukkit.configuration.ConfigurationOptions
org.bukkit.configuration.MemoryConfigurationOptions
- Direct Known Subclasses:
FileConfigurationOptions
Various settings for controlling the input and output of a
MemoryConfiguration
-
Constructor Summary
ModifierConstructorDescriptionprotected
MemoryConfigurationOptions(@NotNull MemoryConfiguration configuration)
-
Method Summary
Modifier and TypeMethodDescriptionReturns theConfiguration
that this object is responsible for.copyDefaults(boolean value)
Sets if theConfiguration
should copy values from its defaultConfiguration
directly.pathSeparator(char value)
Sets the char that will be used to separateConfigurationSection
sMethods inherited from class org.bukkit.configuration.ConfigurationOptions
copyDefaults, pathSeparator
-
Constructor Details
-
MemoryConfigurationOptions
-
-
Method Details
-
configuration
Description copied from class:ConfigurationOptions
Returns theConfiguration
that this object is responsible for.- Overrides:
configuration
in classConfigurationOptions
- Returns:
- Parent configuration
-
copyDefaults
Description copied from class:ConfigurationOptions
Sets if theConfiguration
should copy values from its defaultConfiguration
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(java.lang.String)
will always return the same value asConfigurationSection.isSet(java.lang.String)
. The default value is false.- Overrides:
copyDefaults
in classConfigurationOptions
- Parameters:
value
- Whether or not defaults are directly copied- Returns:
- This object, for chaining
-
pathSeparator
Description copied from class:ConfigurationOptions
Sets the char that will be used to separateConfigurationSection
sThis value does not affect how the
Configuration
is stored, only in how you access the data. The default value is '.'.- Overrides:
pathSeparator
in classConfigurationOptions
- Parameters:
value
- Path separator- Returns:
- This object, for chaining
-