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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the Config contains the specified Pathvoid
Recreates 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 Pathvoid
reload()
Reloads the Configuration Filevoid
save()
Saves the Config Object to its Filevoid
Saves the Config Object to a Filevoid
Sets 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:Config
Sets the Value for the specified Path -
contains
Description copied from class:Config
Checks whether the Config contains the specified Path -
getValue
Description copied from class:Config
Returns the Object at the specified Path -
getString
Description copied from class:Config
Returns the String at the specified Path -
getKeys
Description copied from class:Config
Returns all Paths in this Config -
getKeys
Description copied from class:Config
Returns all Sub-Paths in this Config -
getFile
Description copied from class:Config
Returns the File the Config is handling -
getConfiguration
Description copied from class:Config
Converts this Config Object into a plain FileConfiguration Object- Overrides:
getConfiguration
in classConfig
- Returns:
- The converted FileConfiguration Object
-
save
public void save()Description copied from class:Config
Saves the Config Object to its File -
save
Description copied from class:Config
Saves the Config Object to a File -
createFile
public void createFile()Description copied from class:Config
Recreates the File of this Config- Overrides:
createFile
in classConfig
-
reload
public void reload()Description copied from class:Config
Reloads the Configuration File -
toJSON
-