接口的使用
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(@NotNull String path) Creates an emptyConfigurationSectionat the specified path.ConfigurationSection.createSection(@NotNull String path, @NotNull Map<?, ?> map) Creates aConfigurationSectionat 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 parentConfigurationSectionthat directly contains thisConfigurationSection.MemoryConfiguration.getParent()MemorySection.getParent()修饰符和类型方法说明MemorySection.createPath(@NotNull ConfigurationSection section, @Nullable String key) Creates a full path to the givenConfigurationSectionfrom its rootConfiguration.MemorySection.createPath(@NotNull ConfigurationSection section, @Nullable String key, @Nullable ConfigurationSection relativeTo) Creates a relative path to the givenConfigurationSectionfrom the given relative section.protected voidMemorySection.mapChildrenKeys(@NotNull Set<String> output, @NotNull ConfigurationSection section, boolean deep) protected voidMemorySection.mapChildrenValues(@NotNull Map<String, Object> output, @NotNull ConfigurationSection section, boolean deep) 参数类型为ConfigurationSection的org.bukkit.configuration中的构造器限定符构造器说明protectedMemorySection(@NotNull ConfigurationSection parent, @NotNull 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.