# 接口的使用
org.bukkit.configuration.ConfigurationSection

使用ConfigurationSection的程序包
程序包
说明
org.bukkit.configuration
专门用于处理插件运行时配置的类.
org.bukkit.configuration.file
致力于简化`配置`的读取和保存操作的类.

- ## org.bukkit.configuration中ConfigurationSection的使用

  org.bukkit.configuration中ConfigurationSection的子接口
  修饰符和类型
  接口
  说明
  `interface`
  `Configuration`
  配置文件的基类.
  实现ConfigurationSection的org.bukkit.configuration中的类
  修饰符和类型
  类
  说明
  `class`
  `MemoryConfiguration`
  This is a `Configuration` implementation that does not save or load from any source, and stores all values in memory only.
  `class`
  `MemorySection`
  A type of `ConfigurationSection` that is stored in memory.
  返回ConfigurationSection的org.bukkit.configuration中的方法
  修饰符和类型
  方法
  说明
  `@NotNull ConfigurationSection`
  ConfigurationSection.`createSection(@NotNull String path)`
  Creates an empty `ConfigurationSection` at the specified path.
  `@NotNull ConfigurationSection`
  ConfigurationSection.`createSection(@NotNull String path, @NotNull Map<?,?> map)`
  Creates a `ConfigurationSection` at the specified path, with specified values.
  `@NotNull ConfigurationSection`
  MemorySection.`createSection(@NotNull String path)`
  `@NotNull ConfigurationSection`
  MemorySection.`createSection(@NotNull String path, @NotNull Map<?,?> map)`
  `@Nullable ConfigurationSection`
  ConfigurationSection.`getConfigurationSection(@NotNull String path)`
  获取一个 `ConfigurationSection` ,它是一个以指定路径作为基点的新的配置项,修改会同步.
  `@Nullable ConfigurationSection`
  MemorySection.`getConfigurationSection(@NotNull String path)`
  `@Nullable ConfigurationSection`
  ConfigurationSection.`getDefaultSection()`
  Gets the equivalent `ConfigurationSection` from the default `Configuration` defined in `getRoot()`.
  `@Nullable ConfigurationSection`
  MemorySection.`getDefaultSection()`
  `@Nullable ConfigurationSection`
  ConfigurationSection.`getParent()`
  Gets the parent `ConfigurationSection` that directly contains this `ConfigurationSection`.
  `@Nullable ConfigurationSection`
  MemoryConfiguration.`getParent()`
  `@Nullable ConfigurationSection`
  MemorySection.`getParent()`
  参数类型为ConfigurationSection的org.bukkit.configuration中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull String`
  MemorySection.`createPath(@NotNull ConfigurationSection section, @Nullable String key)`
  Creates a full path to the given `ConfigurationSection` from its root `Configuration`.
  `static @NotNull String`
  MemorySection.`createPath(@NotNull ConfigurationSection section, @Nullable String key, @Nullable ConfigurationSection relativeTo)`
  Creates a relative path to the given `ConfigurationSection` from the given relative section.
  `protected void`
  MemorySection.`mapChildrenKeys(@NotNull Set<String> output, @NotNull ConfigurationSection section, boolean deep)`
  `protected void`
  MemorySection.`mapChildrenValues(@NotNull Map<String,Object> output, @NotNull ConfigurationSection section, boolean deep)`
  参数类型为ConfigurationSection的org.bukkit.configuration中的构造器
  限定符
  构造器
  说明
  `protected`
  `MemorySection(@NotNull ConfigurationSection parent, @NotNull String path)`
  Creates an empty MemorySection with the specified parent and path.

- ## org.bukkit.configuration.file中ConfigurationSection的使用

  实现ConfigurationSection的org.bukkit.configuration.file中的类
  修饰符和类型
  类
  说明
  `class`
  `FileConfiguration`
  这是一个实现了 `Configuration` 的配置文件的基类
  `class`
  `YamlConfiguration`
  An implementation of `Configuration` which saves all files in Yaml.