Package org.bukkit.configuration
Class MemoryConfigurationOptions
- java.lang.Object
-
- org.bukkit.configuration.ConfigurationOptions
-
- org.bukkit.configuration.MemoryConfigurationOptions
-
- Direct Known Subclasses:
FileConfigurationOptions
public class MemoryConfigurationOptions extends ConfigurationOptions
Various settings for controlling the input and output of aMemoryConfiguration
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMemoryConfigurationOptions(@NotNull MemoryConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MemoryConfigurationconfiguration()Returns theConfigurationthat this object is responsible for.@NotNull MemoryConfigurationOptionscopyDefaults(boolean value)Sets if theConfigurationshould copy values from its defaultConfigurationdirectly.@NotNull MemoryConfigurationOptionspathSeparator(char value)Sets the char that will be used to separateConfigurationSections-
Methods inherited from class org.bukkit.configuration.ConfigurationOptions
copyDefaults, pathSeparator
-
-
-
-
Constructor Detail
-
MemoryConfigurationOptions
protected MemoryConfigurationOptions(@NotNull @NotNull MemoryConfiguration configuration)
-
-
Method Detail
-
configuration
@NotNull public @NotNull MemoryConfiguration configuration()
Description copied from class:ConfigurationOptionsReturns theConfigurationthat this object is responsible for.- Overrides:
configurationin classConfigurationOptions- Returns:
- Parent configuration
-
copyDefaults
@NotNull public @NotNull MemoryConfigurationOptions copyDefaults(boolean value)
Description copied from class:ConfigurationOptionsSets if theConfigurationshould copy values from its defaultConfigurationdirectly.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:
copyDefaultsin classConfigurationOptions- Parameters:
value- Whether or not defaults are directly copied- Returns:
- This object, for chaining
-
pathSeparator
@NotNull public @NotNull MemoryConfigurationOptions pathSeparator(char value)
Description copied from class:ConfigurationOptionsSets the char that will be used to separateConfigurationSectionsThis value does not affect how the
Configurationis stored, only in how you access the data. The default value is '.'.- Overrides:
pathSeparatorin classConfigurationOptions- Parameters:
value- Path separator- Returns:
- This object, for chaining
-
-