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

public abstract class Structure extends SkriptEvent
  • Constructor Details

    • Structure

      public Structure()
  • Method Details

    • getConfiguration

      protected SectionConfiguration getConfiguration()
    • loadSection

      public List<Statement> loadSection(FileSection section, ParserState parserState, SkriptLogger logger)
      Overrides:
      loadSection in class SkriptEvent
    • getLoadingPriority

      public int getLoadingPriority()
      Description copied from class: SkriptEvent
      For 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, triggers with a higher loading priority number will be loaded first.

      Overrides:
      getLoadingPriority in class SkriptEvent
      Returns:
      the default loading priority for structures