Interface ScriptEvent.ScriptActiveEvent

All Superinterfaces:
ScriptEvent
Enclosing interface:
ScriptEvent
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 ScriptEvent.ScriptActiveEvent extends ScriptEvent
A ScriptEvent that is called when a Script is made active in a ParserInstance.
  • Method Details

    • onActive

      void onActive(@Nullable @Nullable Script oldScript)
      Called when this Script is made active in a ParserInstance.
      Parameters:
      oldScript - The Script that was just made inactive. Null if the ParserInstance handling this Script was not ParserInstance.isActive() (it is becoming active).