Class ScriptLoader
java.lang.Object
io.github.syst3ms.skriptparser.parsing.ScriptLoader
Contains the logic for loading, parsing, and interpreting entire script files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadItems(FileSection section, ParserState parserState, SkriptLogger logger) Parses all items inside of a given section.loadScript(Path scriptPath, boolean debug) Parses and loads the provided script in memory.loadScript(Path scriptPath, SkriptLogger logger, boolean debug) Parses and loads the provided script in memory.
-
Constructor Details
-
ScriptLoader
public ScriptLoader()
-
-
Method Details
-
loadScript
-
loadScript
Parses and loads the provided script in memory. The provided SkriptLogger can be used within syntaxes to input erroring into the logs during parse time.- Parameters:
scriptPath- the script file to load.logger- TheSkriptLoggerto use for the logged entries. Useful for custom logging.debug- whether debug is enabled.
-
loadItems
public static List<Statement> loadItems(FileSection section, ParserState parserState, SkriptLogger logger) Parses all items inside of a given section.- Parameters:
section- the sectionlogger- the logger- Returns:
- a list of effects inside of the section
-
getTriggerMap
-