接口的使用
org.bukkit.configuration.ConfigurationSection
-
org.bukkit.configuration中ConfigurationSection的使用
修饰符和类型类说明class
This is aConfiguration
implementation that does not save or load from any source, and stores all values in memory only.class
A type ofConfigurationSection
that is stored in memory.修饰符和类型方法说明ConfigurationSection.createSection
(@NotNull String path) Creates an emptyConfigurationSection
at the specified path.ConfigurationSection.createSection
(@NotNull String path, @NotNull Map<?, ?> map) Creates aConfigurationSection
at the specified path, with specified values.MemorySection.createSection
(@NotNull String path) MemorySection.createSection
(@NotNull String path, @NotNull Map<?, ?> map) ConfigurationSection.getConfigurationSection
(@NotNull String path) 获取一个ConfigurationSection
,它是一个以指定路径作为基点的新的配置项,修改会同步.MemorySection.getConfigurationSection
(@NotNull String path) ConfigurationSection.getDefaultSection()
MemorySection.getDefaultSection()
ConfigurationSection.getParent()
Gets the parentConfigurationSection
that directly contains thisConfigurationSection
.MemoryConfiguration.getParent()
MemorySection.getParent()
修饰符和类型方法说明MemorySection.createPath
(@NotNull ConfigurationSection section, @Nullable String key) Creates a full path to the givenConfigurationSection
from its rootConfiguration
.MemorySection.createPath
(@NotNull ConfigurationSection section, @Nullable String key, @Nullable ConfigurationSection relativeTo) Creates a relative path to the givenConfigurationSection
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) 限定符构造器说明protected
MemorySection
(@NotNull ConfigurationSection parent, @NotNull String path) Creates an empty MemorySection with the specified parent and path. -
org.bukkit.configuration.file中ConfigurationSection的使用
修饰符和类型类说明class
这是一个实现了Configuration
的配置文件的基类class
An implementation ofConfiguration
which saves all files in Yaml.