Package studio.magemonkey.fusion.cfg
Class YamlParser
java.lang.Object
org.bukkit.configuration.MemorySection
org.bukkit.configuration.MemoryConfiguration
org.bukkit.configuration.file.FileConfiguration
org.bukkit.configuration.file.YamlConfiguration
studio.magemonkey.fusion.cfg.YamlParser
- All Implemented Interfaces:
org.bukkit.configuration.Configuration,org.bukkit.configuration.ConfigurationSection,IValuesReloadable
public class YamlParser
extends org.bukkit.configuration.file.YamlConfiguration
implements IValuesReloadable
-
Field Summary
Fields inherited from class org.bukkit.configuration.file.YamlConfiguration
BLANK_CONFIG, COMMENT_PREFIXFields inherited from class org.bukkit.configuration.MemoryConfiguration
defaults, optionsFields inherited from class org.bukkit.configuration.MemorySection
map -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMissing(@NotNull String path, @Nullable Object val) static org.bukkit.configuration.file.FileConfigurationgetDefaultConfig(String filePath) getEnchantmentSection(@NotNull String path) @NotNull FilegetFile()List<org.bukkit.inventory.ItemFlag> getItemFlags(@NotNull String path) getSection(@NotNull String path) getStringList(@NotNull String path) getStringList(@NotNull String path, List<String> def) static @NotNull YamlParserloadOrExtract(org.bukkit.plugin.java.JavaPlugin plugin, @NotNull String filePath) voidreload()static voidstatic voidreloadAll(boolean message) voidbooleanvoidsave()voidvoidMethods inherited from class org.bukkit.configuration.file.YamlConfiguration
loadConfiguration, loadConfiguration, loadFromString, options, saveToStringMethods inherited from class org.bukkit.configuration.file.FileConfiguration
buildHeader, load, load, load, save, saveMethods inherited from class org.bukkit.configuration.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaultsMethods inherited from class org.bukkit.configuration.MemorySection
contains, contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getComments, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInlineComments, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLocation, getLocation, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, setComments, setInlineComments, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.configuration.ConfigurationSection
contains, contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getComments, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInlineComments, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLocation, getLocation, getLong, getLong, getLongList, getMapList, getName, getObject, getObject, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLocation, isLong, isOfflinePlayer, isSet, isString, isVector, setComments, setInlineComments
-
Constructor Details
-
YamlParser
-
-
Method Details
-
getFile
-
save
public void save() -
set
- Specified by:
setin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
setin classorg.bukkit.configuration.MemorySection
-
saveChanges
public void saveChanges() -
reload
public void reload() -
getDefaultConfig
-
loadOrExtract
@NotNull public static @NotNull YamlParser loadOrExtract(org.bukkit.plugin.java.JavaPlugin plugin, @NotNull @NotNull String filePath) -
addMissing
-
remove
-
getSection
-
getString
- Specified by:
getStringin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
getStringin classorg.bukkit.configuration.MemorySection
-
getString
- Specified by:
getStringin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
getStringin classorg.bukkit.configuration.MemorySection
-
getStringList
- Specified by:
getStringListin interfaceorg.bukkit.configuration.ConfigurationSection- Overrides:
getStringListin classorg.bukkit.configuration.MemorySection
-
getStringList
-
getEnchantmentSection
-
getItemFlags
-
getConfig
- Specified by:
getConfigin interfaceIValuesReloadable
-
reloadValues
public void reloadValues()- Specified by:
reloadValuesin interfaceIValuesReloadable
-
reload
-
reloadAll
public static void reloadAll(boolean message) -
getConfigNames
-