Class YamlResource
java.lang.Object
org.kingdoms.utils.config.adapters.YamlWithDefaults
org.kingdoms.utils.config.adapters.YamlResource
- All Implemented Interfaces:
YamlContainer
-
Field Summary
FieldsFields inherited from class org.kingdoms.utils.config.adapters.YamlWithDefaults
config, defaults, file, validator -
Constructor Summary
ConstructorsConstructorDescriptionYamlResource(File file) YamlResource(File file, String resourcePath) YamlResource(org.bukkit.plugin.Plugin plugin, File file, String resourcePath) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamprotected Stringprotected InputStreamload()Methods inherited from class org.kingdoms.utils.config.adapters.YamlWithDefaults
accessor, createEmptyConfigIfNull, createFile, getConfig, getDefaults, getFile, inputStreamOf, isDefault, loadDefaults, loadSchema, reload, saveConfig, saveDefaultConfig, setSchema, transferTo, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.utils.config.adapters.YamlContainer
isLoaded
-
Field Details
-
plugin
protected final org.bukkit.plugin.Plugin plugin -
resourcePath
-
-
Constructor Details
-
YamlResource
-
YamlResource
-
YamlResource
-
-
Method Details
-
getDefaultsInputStream
- Specified by:
getDefaultsInputStreamin classYamlWithDefaults
-
getDefaultsPath
- Specified by:
getDefaultsPathin classYamlWithDefaults
-
load
- Specified by:
loadin interfaceYamlContainer- Overrides:
loadin classYamlWithDefaults
-
getSchemaInputStream
- Specified by:
getSchemaInputStreamin classYamlWithDefaults
-