Package ch.njol.skript.lang
Class Section.SectionContext
java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
ch.njol.skript.lang.Section.SectionContext
- Enclosing class:
Section
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
modify
(SectionNode sectionNode, List<TriggerItem> triggerItems, Supplier<T> supplier) Modifies this SectionContext temporarily, for the duration of theSupplier.get()
call, reverting the changes afterwards.Methods inherited from class ch.njol.skript.lang.parser.ParserInstance.Data
getParser, onCurrentEventsChange, onCurrentScriptChange
-
Field Details
-
sectionNode
-
triggerItems
-
-
Constructor Details
-
SectionContext
-
-
Method Details
-
modify
protected <T> T modify(SectionNode sectionNode, List<TriggerItem> triggerItems, Supplier<T> supplier) Modifies this SectionContext temporarily, for the duration of theSupplier.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.
-