Class GroovyScriptEngineModifyEvent

java.lang.Object
net.neoforged.bus.api.Event
de.luckymcdev.foundryengine.script.common.event.GroovyScriptEngineModifyEvent

public class GroovyScriptEngineModifyEvent extends net.neoforged.bus.api.Event
Event posted once when the script compiler is created. Allows modification of the shared template CompilerConfiguration before any bundle is compiled.

Compilation customizers added here are kept. Sandbox customizers are added afterwards and cannot be removed through this event.

  • Constructor Details

    • GroovyScriptEngineModifyEvent

      public GroovyScriptEngineModifyEvent(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
  • Method Details

    • getCompilerConfiguration

      public org.codehaus.groovy.control.CompilerConfiguration getCompilerConfiguration()