Class MemoryConfigurationOptions
java.lang.Object
com.plotsquared.core.configuration.MemoryConfigurationOptions
- Direct Known Subclasses:
FileConfigurationOptions
Various settings for controlling the input and output of a
MemoryConfiguration.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMemoryConfigurationOptions(MemoryConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionReturns theConfigurationthat this object is responsible for.booleanChecks if theConfigurationshould copy values from its defaultConfigurationdirectly.copyDefaults(boolean value)Sets if theConfigurationshould copy values from its defaultConfigurationdirectly.
-
Constructor Details
-
MemoryConfigurationOptions
-
-
Method Details
-
configuration
Returns theConfigurationthat this object is responsible for.- Returns:
- Parent configuration
-
copyDefaults
Sets 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(String)will always return the same value asConfigurationSection.isSet(String). The default value is false.- Parameters:
value- Whether or not defaults are directly copied- Returns:
- This object, for chaining
-
copyDefaults
public boolean copyDefaults()Checks 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(String)will always return the same value asConfigurationSection.isSet(String). The default value is false.- Returns:
- Whether or not defaults are directly copied
-