接口的使用
org.bukkit.configuration.Configuration
-
org.bukkit.configuration中Configuration的使用
修饰符和类型类说明class
This is aConfiguration
implementation that does not save or load from any source, and stores all values in memory only.修饰符和类型方法说明ConfigurationOptions.configuration()
返回关联这个配置的Configuration
.Configuration.getDefaults()
获取这个Configuration
的缺省值Configuration
.MemoryConfiguration.getDefaults()
ConfigurationSection.getRoot()
Gets the rootConfiguration
that contains thisConfigurationSection
MemorySection.getRoot()
修饰符和类型方法说明void
Configuration.addDefaults
(@NotNull Configuration defaults) 把指定Configuration
全部加入到缺省值列表.void
MemoryConfiguration.addDefaults
(@NotNull Configuration defaults) void
Configuration.setDefaults
(@NotNull Configuration defaults) 设置新的缺省值列表.void
MemoryConfiguration.setDefaults
(@NotNull Configuration defaults) 限定符构造器说明protected
ConfigurationOptions
(@NotNull Configuration configuration) MemoryConfiguration
(@Nullable Configuration defaults) Creates an emptyMemoryConfiguration
using the specifiedConfiguration
as a source for all default values. -
org.bukkit.configuration.file中Configuration的使用
修饰符和类型类说明class
这是一个实现了Configuration
的配置文件的基类class
An implementation ofConfiguration
which saves all files in Yaml.限定符构造器说明FileConfiguration
(@Nullable Configuration defaults) 创建一个空的FileConfiguration
并且使用Configuration
内的所有默认值创建它.