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 |
|---|---|
void |
clear() |
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, parseHeaderload, load, load, save, saveaddDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultscontains, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, 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, setprotected 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.IOExceptionorg.bukkit.configuration.InvalidConfigurationExceptionpublic void loadFromString(java.lang.String contents)
throws org.bukkit.configuration.InvalidConfigurationException
loadFromString in class org.bukkit.configuration.file.YamlConfigurationorg.bukkit.configuration.InvalidConfigurationExceptionpublic java.lang.String saveToString()
saveToString in class org.bukkit.configuration.file.YamlConfigurationpublic 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 clear()
public void reload()
public java.lang.String getName()
getName in interface org.bukkit.configuration.ConfigurationSectiongetName in class org.bukkit.configuration.MemorySectionpublic 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()