Interface ScriptLoader.ScriptInitEvent

All Superinterfaces:
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.ScriptInitEvent extends ScriptLoader.LoaderEvent
Called when a Script is created and preloaded in the ScriptLoader. The initializing script may contain Structures that are not fully loaded.
See Also:
  • Method Summary

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

    • onInit

      void onInit(Script script)
      The method that is called when this event triggers.
      Parameters:
      script - The Script being initialized.