java.lang.Object
me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config
Direct Known Subclasses:
BlockDataConfigWrapper, BlockInfoConfig

@Deprecated(forRemoval=true) public class Config extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Only used by the legacy BlockStorage system.
An old remnant of CS-CoreLib. This will be removed once we updated everything. Don't look at the code, it will be gone soon, don't worry.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
    internal constructor used for Wrapper
     
    Config(File file)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new Config Object for the specified File
     
    Config(File file, org.bukkit.configuration.file.FileConfiguration config)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new Config Object for the specified File and FileConfiguration
     
    Config(String path)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new Config Object for the File with in the specified Location
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks whether the Config contains the specified Path
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Recreates the File of this Config
    org.bukkit.configuration.file.FileConfiguration
    Deprecated, for removal: This API element is subject to removal in a future version.
    Converts this Config Object into a plain FileConfiguration Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the File the Config is handling
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns all Paths in this Config
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns all Sub-Paths in this Config
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the String at the specified Path
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the Object at the specified Path
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reloads the Configuration File
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Saves the Config Object to its File
    void
    save(File file)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Saves the Config Object to a File
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the Value for the specified Path (IF the Path does not yet exist)
    void
    setValue(String path, Object value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the Value for the specified Path

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Config

      protected Config()
      Deprecated, for removal: This API element is subject to removal in a future version.
      internal constructor used for Wrapper
    • Config

      public Config(File file)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new Config Object for the specified File
      Parameters:
      file - The File for which the Config object is created for
    • Config

      public Config(File file, org.bukkit.configuration.file.FileConfiguration config)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new Config Object for the specified File and FileConfiguration
      Parameters:
      file - The File to save to
      config - The FileConfiguration
    • Config

      public Config(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new Config Object for the File with in the specified Location
      Parameters:
      path - The Path of the File which the Config object is created for
  • Method Details

    • getFile

      public File getFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the File the Config is handling
      Returns:
      The File this Config is handling
    • getConfiguration

      public org.bukkit.configuration.file.FileConfiguration getConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts this Config Object into a plain FileConfiguration Object
      Returns:
      The converted FileConfiguration Object
    • setValue

      public void setValue(String path, Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the Value for the specified Path
      Parameters:
      path - The path in the Config File
      value - The Value for that Path
    • save

      public void save()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Saves the Config Object to its File
    • save

      public void save(File file)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Saves the Config Object to a File
      Parameters:
      file - The File you are saving this Config to
    • setDefaultValue

      public void setDefaultValue(String path, Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the Value for the specified Path (IF the Path does not yet exist)
      Parameters:
      path - The path in the Config File
      value - The Value for that Path
    • contains

      public boolean contains(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the Config contains the specified Path
      Parameters:
      path - The path in the Config File
      Returns:
      True/false
    • getValue

      public Object getValue(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the Object at the specified Path
      Parameters:
      path - The path in the Config File
      Returns:
      The Value at that Path
    • getString

      public String getString(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the String at the specified Path
      Parameters:
      path - The path in the Config File
      Returns:
      The String at that Path
    • createFile

      public void createFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Recreates the File of this Config
    • getKeys

      public Set<String> getKeys()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all Paths in this Config
      Returns:
      All Paths in this Config
    • getKeys

      public Set<String> getKeys(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns all Sub-Paths in this Config
      Parameters:
      path - The path in the Config File
      Returns:
      All Sub-Paths of the specified Path
    • reload

      public void reload()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reloads the Configuration File