Class SectionLoader
java.lang.Object
io.github.syst3ms.skriptparser.lang.entries.EntryLoader
io.github.syst3ms.skriptparser.lang.entries.SectionLoader
-
Field Summary
Fields inherited from class EntryLoader
key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanloadEntry(SectionConfiguration config, FileElement element, ParserState parserState, SkriptLogger logger) ThisEntryLoaderwill attempt to load the entry using its FileElement.Methods inherited from class EntryLoader
isOptional
-
Constructor Details
-
SectionLoader
-
-
Method Details
-
loadEntry
public boolean loadEntry(SectionConfiguration config, FileElement element, ParserState parserState, SkriptLogger logger) Description copied from class:EntryLoaderThisEntryLoaderwill attempt to load the entry using its FileElement. One can use this method to create specific error messages or to load the value correctly.
If an error occurred while executing this method, meaning SkriptLogger.hasError() istrue, the parser will not loop over the other elements present. If this method returnedfalse, but there is no error given, a default error message"The entry has not been configured."will be used.- Specified by:
loadEntryin classEntryLoader- Parameters:
config- the configurationelement- the elementparserState- the parser statelogger- the logger- Returns:
trueif loaded successfully,falseif an error occurred
-