YAML configuration loader. To use this class, construct it with path to a file and call its load() method. For specifying node paths in the various get*() methods, they support SK's path notation, allowing you to select child nodes by delimiting node names with periods.
For example, given the following configuration file:
members: - Hollie - Jason - Bobo - Aya - Tetsu worldguard: fire: spread: false blocks: [cloth, rock, glass] sturmeh: cool: false eats: babies: true
Calling code could access sturmeh's baby eating state by using getBoolean("sturmeh.eats.babies", false)
. For lists, there are methods such as getStringList
that will return a type safe list.