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 Pull Request #4353 and Issue #4473.