Interface ScriptLoader

    • Method Detail

      • getEnvironment

        ScriptEnvironment getEnvironment()
        Gets the script environment this loader is operating in
        Returns:
        the parent environment
      • watch

        default void watch​(String... paths)
        Loads and watches a script
        Parameters:
        paths - the path to watch
      • watchAll

        void watchAll​(Collection<String> paths)
        Loads and watches a collection of scripts
        Parameters:
        paths - the paths to watch
      • unwatch

        default void unwatch​(String... paths)
        Unloads a script
        Parameters:
        paths - the path to unwatch
      • unwatchAll

        void unwatchAll​(Collection<String> paths)
        Unloads a collection of scripts
        Parameters:
        paths - the paths to unwatch