接口的使用
org.bukkit.configuration.ConfigurationSection
使用ConfigurationSection的程序包
-
org.bukkit.configuration中ConfigurationSection的使用
修饰符和类型类说明classThis is aConfigurationimplementation that does not save or load from any source, and stores all values in memory only.classA type ofConfigurationSectionthat is stored in memory.修饰符和类型方法说明ConfigurationSection.createSection(String path) Creates an emptyConfigurationSectionat the specified path.ConfigurationSection.createSection(String path, Map<?, ?> map) Creates aConfigurationSectionat 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 parentConfigurationSectionthat directly contains thisConfigurationSection.MemoryConfiguration.getParent()MemorySection.getParent()修饰符和类型方法说明static StringMemorySection.createPath(ConfigurationSection section, String key) Creates a full path to the givenConfigurationSectionfrom its rootConfiguration.static StringMemorySection.createPath(ConfigurationSection section, String key, ConfigurationSection relativeTo) Creates a relative path to the givenConfigurationSectionfrom the given relative section.protected voidMemorySection.mapChildrenKeys(Set<String> output, ConfigurationSection section, boolean deep) protected voidMemorySection.mapChildrenValues(Map<String, Object> output, ConfigurationSection section, boolean deep) 参数类型为ConfigurationSection的org.bukkit.configuration中的构造器限定符构造器说明protectedMemorySection(ConfigurationSection parent, String path) Creates an empty MemorySection with the specified parent and path. -
org.bukkit.configuration.file中ConfigurationSection的使用
修饰符和类型类说明class这是一个实现了Configuration的配置文件的基类classAn implementation ofConfigurationwhich saves all files in Yaml.修饰符和类型方法说明protected voidYamlConfiguration.convertMapsToSections(Map<?, ?> input, ConfigurationSection section)