Skript
Skript copied to clipboard
Create SectionExitHandler interface
Description
- Add an interface
SectionExitHandler, having one methodexit(Event). - Change
LoopSectionto implement this. - Change the 'exit' and 'return' effects to check if the enclosing nodes are SectionExitHandlers instead of checking for LoopSections.
This PR enables addons to add sections which don't need to hold loop counters doing something when exited.
Target Minecraft Versions: any Requirements: none Related Issues: none
I'm not sure about the name. What do you think about something like ExitableSection
Thanks for this!