Class Config
-
public final class Config extends ConfigSection
Wraps a config file and provides useful facilities for writing/reading it.
If the file changes on disk, you will need to create a new Config object to get the latest version of the file.
-
-
Method Summary
Modifier and Type Method Description final FilegetFile()final YamlConfigurationgetInternalConfig()The YamlConfiguration that this object wraps. final ConfigurationSectiongetInternalSection()final Set<String>getKeys()Returns all the keys in the section. final voidsave()Saves the configuration to the file it was loaded from. -
Methods inherited from class io.github.pylonmc.pylon.core.config.ConfigSection
createSection, get, get, getOrThrow, getSection, getSectionOrThrow, getSections, merge, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Config
Config(File file, YamlConfiguration internalConfig)
-
Config
Config(Path path)
-
-
Method Detail
-
getInternalConfig
final YamlConfiguration getInternalConfig()
The YamlConfiguration that this object wraps.
-
getInternalSection
final ConfigurationSection getInternalSection()
-
save
final void save()
Saves the configuration to the file it was loaded from.
-
-
-
-