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_PREFIX

    Fields inherited from class org.bukkit.configuration.MemoryConfiguration

    defaults, options

    Fields inherited from class org.bukkit.configuration.MemorySection

    map
  • Constructor Summary

    Constructors
    Constructor
    Description
    YamlParser(@NotNull File file)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMissing(@NotNull String path, @Nullable Object val)
     
     
    static List<String>
     
    static org.bukkit.configuration.file.FileConfiguration
     
    Map<org.bukkit.enchantments.Enchantment,Integer>
     
    @NotNull File
     
    List<org.bukkit.inventory.ItemFlag>
    getItemFlags(@NotNull String path)
     
    @NotNull Set<String>
    getSection(@NotNull String path)
     
    getString(@NotNull String path)
     
    getString(@NotNull String path, @Nullable String def)
     
    @NotNull List<String>
    getStringList(@NotNull String path)
     
    getStringList(@NotNull String path, List<String> def)
     
    static @NotNull YamlParser
    loadOrExtract(org.bukkit.plugin.java.JavaPlugin plugin, @NotNull String filePath)
     
    void
     
    static void
    reload(String config)
     
    static void
    reloadAll(boolean message)
     
    void
     
    boolean
    remove(@NotNull String path)
     
    void
     
    void
     
    void
    set(@NotNull String path, @Nullable Object value)
     

    Methods inherited from class org.bukkit.configuration.file.YamlConfiguration

    loadConfiguration, loadConfiguration, loadFromString, options, saveToString

    Methods inherited from class org.bukkit.configuration.file.FileConfiguration

    buildHeader, load, load, load, save, save

    Methods inherited from class org.bukkit.configuration.MemoryConfiguration

    addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults

    Methods 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, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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

      public YamlParser(@NotNull @NotNull File file)
  • Method Details

    • getFile

      @NotNull public @NotNull File getFile()
    • save

      public void save()
    • set

      public void set(@NotNull @NotNull String path, @Nullable @Nullable Object value)
      Specified by:
      set in interface org.bukkit.configuration.ConfigurationSection
      Overrides:
      set in class org.bukkit.configuration.MemorySection
    • saveChanges

      public void saveChanges()
    • reload

      public void reload()
    • getDefaultConfig

      public static org.bukkit.configuration.file.FileConfiguration getDefaultConfig(String filePath)
    • loadOrExtract

      @NotNull public static @NotNull YamlParser loadOrExtract(org.bukkit.plugin.java.JavaPlugin plugin, @NotNull @NotNull String filePath)
    • addMissing

      public void addMissing(@NotNull @NotNull String path, @Nullable @Nullable Object val)
    • remove

      public boolean remove(@NotNull @NotNull String path)
    • getSection

      @NotNull public @NotNull Set<String> getSection(@NotNull @NotNull String path)
    • getString

      public String getString(@NotNull @NotNull String path)
      Specified by:
      getString in interface org.bukkit.configuration.ConfigurationSection
      Overrides:
      getString in class org.bukkit.configuration.MemorySection
    • getString

      public String getString(@NotNull @NotNull String path, @Nullable @Nullable String def)
      Specified by:
      getString in interface org.bukkit.configuration.ConfigurationSection
      Overrides:
      getString in class org.bukkit.configuration.MemorySection
    • getStringList

      @NotNull public @NotNull List<String> getStringList(@NotNull @NotNull String path)
      Specified by:
      getStringList in interface org.bukkit.configuration.ConfigurationSection
      Overrides:
      getStringList in class org.bukkit.configuration.MemorySection
    • getStringList

      public List<String> getStringList(@NotNull @NotNull String path, List<String> def)
    • getEnchantmentSection

      public Map<org.bukkit.enchantments.Enchantment,Integer> getEnchantmentSection(@NotNull @NotNull String path)
    • getItemFlags

      public List<org.bukkit.inventory.ItemFlag> getItemFlags(@NotNull @NotNull String path)
    • getConfig

      public String getConfig()
      Specified by:
      getConfig in interface IValuesReloadable
    • reloadValues

      public void reloadValues()
      Specified by:
      reloadValues in interface IValuesReloadable
    • reload

      public static void reload(String config)
    • reloadAll

      public static void reloadAll(boolean message)
    • getConfigNames

      public static List<String> getConfigNames()