Class Structure
java.lang.Object
io.github.syst3ms.skriptparser.lang.event.SkriptEvent
io.github.syst3ms.skriptparser.lang.Structure
- All Implemented Interfaces:
SyntaxElement
- Direct Known Subclasses:
StructFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SectionConfigurationintFor virtually all programming and scripting languages, the need exists to have functions in order to not repeat code too often.loadSection(FileSection section, ParserState parserState, SkriptLogger logger) Methods inherited from class SkriptEvent
addTrigger, check, clearTrigger, getAllowedSyntaxes, getTriggers, init, isRestrictingExpressionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SyntaxElement
toString
-
Constructor Details
-
Structure
public Structure()
-
-
Method Details
-
getConfiguration
-
loadSection
public List<Statement> loadSection(FileSection section, ParserState parserState, SkriptLogger logger) - Overrides:
loadSectionin classSkriptEvent
-
getLoadingPriority
public int getLoadingPriority()Description copied from class:SkriptEventFor virtually all programming and scripting languages, the need exists to have functions in order to not repeat code too often. Skript is no exception, however, by default, every trigger is loaded in the order it appears in the file, This is undesirable if we don't want the restriction of having to declare functions before using them. This is especially counter-productive if we're dealing with multiple scripts.To solve this problem,
triggerswith a higher loading priority number will be loaded first.- Overrides:
getLoadingPriorityin classSkriptEvent- Returns:
- the default loading priority for structures
-