Package | Description |
---|---|
org.bukkit.configuration |
Classes dedicated to handling a plugin's runtime configuration.
|
org.bukkit.configuration.file |
Classes dedicated to facilitating
configurations to be read and
stored on the filesystem. |
Modifier and Type | Class and Description |
---|---|
class |
MemoryConfiguration
This is a
Configuration implementation that does not save or load
from any source, and stores all values in memory only. |
Modifier and Type | Field and Description |
---|---|
protected Configuration |
MemoryConfiguration.defaults |
Modifier and Type | Method and Description |
---|---|
@NotNull Configuration |
ConfigurationOptions.configuration()
Returns the
Configuration that this object is responsible for. |
@Nullable Configuration |
Configuration.getDefaults()
Gets the source
Configuration for this configuration. |
@Nullable Configuration |
MemoryConfiguration.getDefaults() |
@Nullable Configuration |
ConfigurationSection.getRoot()
Gets the root
Configuration that contains this ConfigurationSection |
@Nullable Configuration |
MemorySection.getRoot() |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.addDefaults(@NotNull Configuration defaults)
Sets the default values of the given paths as provided.
|
void |
MemoryConfiguration.addDefaults(@NotNull Configuration defaults) |
void |
Configuration.setDefaults(@NotNull Configuration defaults)
Sets the source of all default values for this
Configuration . |
void |
MemoryConfiguration.setDefaults(@NotNull Configuration defaults) |
Constructor and Description |
---|
ConfigurationOptions(@NotNull Configuration configuration) |
MemoryConfiguration(@Nullable Configuration defaults)
Creates an empty
MemoryConfiguration using the specified Configuration as a source for all default values. |
Modifier and Type | Class and Description |
---|---|
class |
FileConfiguration
This is a base class for all File based implementations of
Configuration |
class |
YamlConfiguration
An implementation of
Configuration which saves all files in Yaml. |
Constructor and Description |
---|
FileConfiguration(@Nullable Configuration defaults)
Creates an empty
FileConfiguration using the specified Configuration as a source for all default values. |
Copyright © 2021. All rights reserved.