Class EntryLoader
java.lang.Object
io.github.syst3ms.skriptparser.lang.entries.EntryLoader
- Direct Known Subclasses:
OptionLoader, SectionLoader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract booleanloadEntry(SectionConfiguration config, FileElement element, ParserState parserState, SkriptLogger logger) ThisEntryLoaderwill attempt to load the entry using its FileElement.
-
Field Details
-
key
-
-
Constructor Details
-
EntryLoader
-
-
Method Details
-
loadEntry
public abstract boolean loadEntry(SectionConfiguration config, FileElement element, ParserState parserState, SkriptLogger logger) ThisEntryLoaderwill 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.- Parameters:
config- the configurationelement- the elementparserState- the parser statelogger- the logger- Returns:
trueif loaded successfully,falseif an error occurred
-
isOptional
public boolean isOptional()
-