Class Section.SectionContext

java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
ch.njol.skript.lang.Section.SectionContext
Enclosing class:
Section

protected static class Section.SectionContext extends ParserInstance.Data
  • Field Details

  • Constructor Details

    • SectionContext

      public SectionContext(ParserInstance parserInstance)
  • Method Details

    • modify

      protected <T> T modify(SectionNode sectionNode, List<TriggerItem> triggerItems, Supplier<T> supplier)
      Modifies this SectionContext temporarily, for the duration of the Supplier.get() call, reverting the changes afterwards. This must be used instead of manually modifying the fields of this instance, unless you also revert the changes afterwards. See https://github.com/SkriptLang/Skript/pull/4353 and https://github.com/SkriptLang/Skript/issues/4473.