接口的使用
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
(String path) Creates an emptyConfigurationSection
at the specified path.ConfigurationSection.createSection
(String path, Map<?, ?> map) Creates aConfigurationSection
at the specified path, with specified values.MemorySection.createSection
(String path) MemorySection.createSection
(String path, Map<?, ?> map) ConfigurationSection.getConfigurationSection
(String path) 获取一个ConfigurationSection
,它是一个以指定路径作为基点的新的配置项,修改会同步.MemorySection.getConfigurationSection
(String path) ConfigurationSection.getDefaultSection()
MemorySection.getDefaultSection()
ConfigurationSection.getParent()
Gets the parentConfigurationSection
that directly contains thisConfigurationSection
.MemoryConfiguration.getParent()
MemorySection.getParent()
修饰符和类型方法说明static String
MemorySection.createPath
(ConfigurationSection section, String key) Creates a full path to the givenConfigurationSection
from its rootConfiguration
.static String
MemorySection.createPath
(ConfigurationSection section, String key, ConfigurationSection relativeTo) Creates a relative path to the givenConfigurationSection
from the given relative section.protected void
MemorySection.mapChildrenKeys
(Set<String> output, ConfigurationSection section, boolean deep) protected void
MemorySection.mapChildrenValues
(Map<String, Object> output, ConfigurationSection section, boolean deep) 限定符构造器说明protected
MemorySection
(ConfigurationSection parent, 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.修饰符和类型方法说明protected void
YamlConfiguration.convertMapsToSections
(Map<?, ?> input, ConfigurationSection section)