Class Config
java.lang.Object
me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config
- Direct Known Subclasses:
BlockDataConfigWrapper,BlockInfoConfig
Deprecated, for removal: This API element is subject to removal in a future version.
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
ConstructorsModifierConstructorDescriptionprotectedConfig()Deprecated, for removal: This API element is subject to removal in a future version.internal constructor used for WrapperDeprecated, for removal: This API element is subject to removal in a future version.Creates a new Config Object for the specified FileDeprecated, for removal: This API element is subject to removal in a future version.Creates a new Config Object for the specified File and FileConfigurationDeprecated, 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 TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Checks whether the Config contains the specified PathvoidDeprecated, for removal: This API element is subject to removal in a future version.Recreates the File of this Configorg.bukkit.configuration.file.FileConfigurationDeprecated, for removal: This API element is subject to removal in a future version.Converts this Config Object into a plain FileConfiguration ObjectgetFile()Deprecated, for removal: This API element is subject to removal in a future version.Returns the File the Config is handlinggetKeys()Deprecated, for removal: This API element is subject to removal in a future version.Returns all Paths in this ConfigDeprecated, for removal: This API element is subject to removal in a future version.Returns all Sub-Paths in this ConfigDeprecated, for removal: This API element is subject to removal in a future version.Returns the String at the specified PathDeprecated, for removal: This API element is subject to removal in a future version.Returns the Object at the specified Pathvoidreload()Deprecated, for removal: This API element is subject to removal in a future version.Reloads the Configuration Filevoidsave()Deprecated, for removal: This API element is subject to removal in a future version.Saves the Config Object to its FilevoidDeprecated, for removal: This API element is subject to removal in a future version.Saves the Config Object to a FilevoidsetDefaultValue(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)voidDeprecated, for removal: This API element is subject to removal in a future version.Sets the Value for the specified Path
-
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
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
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 toconfig- The FileConfiguration
-
Config
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
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
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 Filevalue- 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
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
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 Filevalue- The Value for that Path
-
contains
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
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
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
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
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
-
BlockStoragesystem.