Interface ScriptLoader.ScriptUnloadEvent

All Superinterfaces:
Event, Script.Event, ScriptLoader.LoaderEvent
Enclosing class:
ScriptLoader
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ScriptLoader.ScriptUnloadEvent extends ScriptLoader.LoaderEvent, Script.Event
Called when a Script is unloaded in the ScriptLoader. This event will trigger before the script is unloaded.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onUnload(ParserInstance parser, Script script)
    The method that is called when this event triggers.
  • Method Details

    • onUnload

      void onUnload(ParserInstance parser, Script script)
      The method that is called when this event triggers.
      Parameters:
      parser - The ParserInstance handling the unloading of script.
      script - The Script being unloaded.