类 JsonConfiguration
- java.lang.Object
-
- org.bukkit.configuration.MemorySection
-
- org.bukkit.configuration.MemoryConfiguration
-
- org.bukkit.configuration.file.FileConfiguration
-
- cn.mcres.gyhhy.MXLib.configuration.JsonConfiguration
-
- 所有已实现的接口:
Configuration
,ConfigurationSection
public class JsonConfiguration extends FileConfiguration
- 版本:
- 1.10
-
-
字段概要
-
从类继承的字段 org.bukkit.configuration.MemoryConfiguration
defaults, options
-
从类继承的字段 org.bukkit.configuration.MemorySection
map
-
-
构造器概要
构造器 构造器 说明 JsonConfiguration()
JsonConfiguration(boolean pretty)
JsonConfiguration(JsonConstructor jc)
JsonConfiguration(com.google.gson.Gson gson)
已过时。
-
方法概要
修饰符和类型 方法 说明 protected String
buildHeader()
void
load(Reader reader)
void
loadFromString(String contents)
void
save(File file)
String
saveToString()
static boolean
support()
-
从类继承的方法 org.bukkit.configuration.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
-
从类继承的方法 org.bukkit.configuration.MemorySection
contains, contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, set, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.bukkit.configuration.ConfigurationSection
contains, contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set
-
-
-
-
构造器详细资料
-
JsonConfiguration
public JsonConfiguration()
-
JsonConfiguration
public JsonConfiguration(boolean pretty)
-
JsonConfiguration
@Deprecated public JsonConfiguration(com.google.gson.Gson gson)
已过时。
-
JsonConfiguration
public JsonConfiguration(@NotNull JsonConstructor jc)
-
-
方法详细资料
-
support
public static boolean support()
-
load
public void load(Reader reader) throws IOException, InvalidConfigurationException
-
save
public void save(File file) throws IOException
- 覆盖:
save
在类中FileConfiguration
- 抛出:
IOException
-
saveToString
public String saveToString()
- 指定者:
saveToString
在类中FileConfiguration
-
loadFromString
public void loadFromString(String contents) throws InvalidConfigurationException
- 指定者:
loadFromString
在类中FileConfiguration
- 抛出:
InvalidConfigurationException
-
buildHeader
protected String buildHeader()
- 指定者:
buildHeader
在类中FileConfiguration
-
-