public abstract class YamlRoot
extends org.bukkit.configuration.file.YamlConfiguration
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
commentPrefixSymbol |
protected static int |
commentSplitWidth |
protected static java.lang.String |
commentSuffixSymbol |
protected static java.util.regex.Pattern |
countSpacePattern |
protected static java.util.regex.Pattern |
fromPattern |
protected static java.lang.String |
fromRegex |
protected static java.lang.String |
newLine |
protected static java.util.regex.Pattern |
toPattern |
protected static java.lang.String |
toRegex |
Constructor and Description |
---|
YamlRoot() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColorString(java.lang.String path) |
java.lang.String |
getColorString(java.lang.String path,
java.lang.String def) |
java.util.List<java.lang.String> |
getColorStringList(java.lang.String path) |
java.io.File |
getFile() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
static YamlRoot |
getYamlRoot() |
static YamlRoot |
getYamlRoot(java.io.File file) |
protected YamlRoot |
initializer(org.bukkit.plugin.Plugin plugin,
YamlAutowire yamlAutowire) |
void |
loadFromString(java.lang.String contents) |
void |
reload() |
void |
save() |
java.lang.String |
saveToString() |
protected void |
setFile(java.io.File file) |
buildHeader, convertMapsToSections, loadConfiguration, loadConfiguration, options, parseHeader
load, load, load, save, save
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
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, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, set, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set
protected static java.lang.String newLine
protected static java.lang.String commentPrefixSymbol
protected static java.lang.String commentSuffixSymbol
protected static java.lang.String fromRegex
protected static java.util.regex.Pattern fromPattern
protected static java.lang.String toRegex
protected static java.util.regex.Pattern toPattern
protected static java.util.regex.Pattern countSpacePattern
protected static int commentSplitWidth
protected YamlRoot initializer(org.bukkit.plugin.Plugin plugin, YamlAutowire yamlAutowire) throws java.io.IOException, org.bukkit.configuration.InvalidConfigurationException
java.io.IOException
org.bukkit.configuration.InvalidConfigurationException
public void loadFromString(java.lang.String contents) throws org.bukkit.configuration.InvalidConfigurationException
loadFromString
in class org.bukkit.configuration.file.YamlConfiguration
org.bukkit.configuration.InvalidConfigurationException
public java.lang.String saveToString()
saveToString
in class org.bukkit.configuration.file.YamlConfiguration
public java.lang.String getColorString(java.lang.String path)
public java.lang.String getColorString(java.lang.String path, java.lang.String def)
public java.util.List<java.lang.String> getColorStringList(java.lang.String path)
public void save()
public void reload()
public java.lang.String getName()
getName
in interface org.bukkit.configuration.ConfigurationSection
getName
in class org.bukkit.configuration.MemorySection
public java.lang.String getPath()
public java.io.File getFile()
protected void setFile(java.io.File file)
public static YamlRoot getYamlRoot(java.io.File file)
public static YamlRoot getYamlRoot()