Class LiteralLoader<T>
java.lang.Object
io.github.syst3ms.skriptparser.lang.entries.EntryLoader
io.github.syst3ms.skriptparser.lang.entries.OptionLoader
io.github.syst3ms.skriptparser.lang.entries.LiteralLoader<T>
-
Field Summary
Fields inherited from class OptionLoader
OPTION_SPLIT_PATTERNFields inherited from class EntryLoader
key -
Constructor Summary
ConstructorsConstructorDescriptionLiteralLoader(String key, Class<T> typeClass, boolean multiple, boolean optional) -
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 OptionLoader
isMultipleMethods inherited from class EntryLoader
isOptional
-
Constructor Details
-
LiteralLoader
-
-
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.- Overrides:
loadEntryin classOptionLoader- Parameters:
config- the configurationelement- the elementparserState- the parser statelogger- the logger- Returns:
trueif loaded successfully,falseif an error occurred
-