YmlFile
Since 1.0.0
Last updated
Since 1.0.0
Last updated
YmlFiles are a very simple implementation of FileHolder for yml files, they provide fast and easy creation and reloading of blank yml files, they are designed to add content to them at runtime, they extend CharsetYamlConfiguration, which extends YamlConfiguration, so every expected method is included plus the ones in the list below. Every method returning a boolean value returns true upon success and false upon failure.
Method | Returns | Description |
---|---|---|
getCharset()
Charset
Returns the Charset being used by this file.
getPath()
String
Gets the path of the file.
getFile()
File
Gets the File
at getPath()
.
create()
void
Creates the file, not needed if registered through MCUtils.
save()
boolean
Saves this file to getFile()
, returns true on success.
reload()
boolean
Reloads the file from disk, any non saved value gets removed.