Class YamlAbstractContainer
java.lang.Object
org.kingdoms.utils.config.adapters.YamlAbstractContainer
- All Implemented Interfaces:
YamlContainer
- Direct Known Subclasses:
YamlFile,YamlWithDefaults
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConfigSectionprotected final @Nullable Fileprotected booleanprotected YamlImporterprotected Runnableprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessor()getFile()booleanvoidDoesn't reload the YAML nodes themselves, but triggers additional reloading mechanics that are needed whenYamlContainer.reload()is called.reloadHandle(Runnable runnable) Adds a handler forreloadHandle()voidsetImportDeclarations(boolean importDeclarations) setImporter(YamlImporter importer) setResolveAliases(boolean resolveAliases) Methods 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
createFile, importDeclarations, isLoaded, load, reload, simpleName
-
Field Details
-
file
-
config
-
importer
-
resolveAliases
protected boolean resolveAliases -
importDeclarations
protected boolean importDeclarations -
reloadHandle
-
-
Constructor Details
-
YamlAbstractContainer
-
-
Method Details
-
getConfig
- Specified by:
getConfigin interfaceYamlContainer
-
accessor
- Specified by:
accessorin interfaceYamlContainer
-
reloadHandle
Adds a handler forreloadHandle() -
reloadHandle
public void reloadHandle()Description copied from interface:YamlContainerDoesn't reload the YAML nodes themselves, but triggers additional reloading mechanics that are needed whenYamlContainer.reload()is called. Mostly used forConfigWatcheror other manual reloading mechanics like/k reload.- Specified by:
reloadHandlein interfaceYamlContainer
-
setResolveAliases
- Specified by:
setResolveAliasesin interfaceYamlContainer
-
setImportDeclarations
- Specified by:
setImportDeclarationsin interfaceYamlContainer
-
getImportDeclarations
public boolean getImportDeclarations()- Specified by:
getImportDeclarationsin interfaceYamlContainer
-
getFile
- Specified by:
getFilein interfaceYamlContainer
-
setImporter
- Specified by:
setImporterin interfaceYamlContainer
-
getImporter
- Specified by:
getImporterin interfaceYamlContainer
-
saveConfig
public void saveConfig()- Specified by:
saveConfigin interfaceYamlContainer
-