Package studio.magemonkey.genesis.api
Interface GenesisAddonStorage
- All Known Implementing Classes:
GenesisAddonConfig
public interface GenesisAddonStorage
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPath(String key) Check if a config contains a pathvoidDelete all parts from a sectionbooleangetBoolean(String path, boolean def) Get a boolean from the configdoubleGet a double from the configintGet an int from the configGet a string from the configgetStringList(String path) Get a list of strings from the configList of keys from configbooleanpasteContentFrom(GenesisAddonStorage source) Copies from file to new filebooleansave()Save the addonvoidSave the addon asyncvoidSet the path for the config
-
Field Details
-
TYPE_LOCAL_FILE
static final int TYPE_LOCAL_FILE- See Also:
-
-
Method Details
-
set
Set the path for the config- Parameters:
path- pathvalue- value
-
getString
Get a string from the config- Parameters:
path- pathdef- default- Returns:
- string
-
getInt
Get an int from the config- Parameters:
path- pathdef- default- Returns:
- int
-
getDouble
Get a double from the config- Parameters:
path- pathdef- default- Returns:
- double
-
getBoolean
Get a boolean from the config- Parameters:
path- pathdef- default- Returns:
- boolean
-
getStringList
Get a list of strings from the config- Parameters:
path- path- Returns:
- list of strings
-
containsPath
Check if a config contains a path- Parameters:
key- path- Returns:
- contains or not
-
listKeys
List of keys from config- Parameters:
section- pathdeep- subkeys or not- Returns:
- list of keys
-
deleteAll
Delete all parts from a section- Parameters:
section- the section to delete
-
save
boolean save()Save the addon- Returns:
- saved or not
-
saveAsync
void saveAsync()Save the addon async -
pasteContentFrom
Copies from file to new file- Parameters:
source- the file to copy from- Returns:
- new addon storage file
-