Package me.mrCookieSlime.Slimefun.api
Class BlockInfoConfig
java.lang.Object
me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config
me.mrCookieSlime.Slimefun.api.BlockInfoConfig
This class is used to speed up parsing of a
JsonObject that is stored at
a given Location.
This simply utilises a HashMap to cache the data and then provides the same getters
as a normal Config.- Author:
- creator3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the Config contains the specified PathvoidRecreates the File of this ConfigConverts this Config Object into a plain FileConfiguration ObjectgetFile()Returns the File the Config is handlinggetKeys()Returns all Paths in this ConfigReturns all Sub-Paths in this ConfiggetMap()Returns the String at the specified PathReturns the Object at the specified Pathvoidreload()Reloads the Configuration Filevoidsave()Saves the Config Object to its FilevoidSaves the Config Object to a FilevoidSets the Value for the specified PathtoJSON()Methods inherited from class me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config
setDefaultValue
-
Constructor Details
-
BlockInfoConfig
public BlockInfoConfig() -
BlockInfoConfig
-
-
Method Details
-
getMap
-
setValue
Description copied from class:ConfigSets the Value for the specified Path -
contains
Description copied from class:ConfigChecks whether the Config contains the specified Path -
getValue
Description copied from class:ConfigReturns the Object at the specified Path -
getString
Description copied from class:ConfigReturns the String at the specified Path -
getKeys
Description copied from class:ConfigReturns all Paths in this Config -
getKeys
Description copied from class:ConfigReturns all Sub-Paths in this Config -
getFile
Description copied from class:ConfigReturns the File the Config is handling -
getConfiguration
Description copied from class:ConfigConverts this Config Object into a plain FileConfiguration Object- Overrides:
getConfigurationin classConfig- Returns:
- The converted FileConfiguration Object
-
save
public void save()Description copied from class:ConfigSaves the Config Object to its File -
save
Description copied from class:ConfigSaves the Config Object to a File -
createFile
public void createFile()Description copied from class:ConfigRecreates the File of this Config- Overrides:
createFilein classConfig
-
reload
public void reload()Description copied from class:ConfigReloads the Configuration File -
toJSON
-