Polyglot Script
class PolyglotScript(val language: String, val file: File, val debugOptions: ScriptDebugOptions = ScriptDebugOptions()) : AutoCloseable
Properties
Functions
Link copied to clipboard
Initialization of scripts
Link copied to clipboard
fun registerChoice(modeValueGroup: ModeValueGroup<Mode>, modeObject: Map<String, Any>, callback: Consumer<Mode>)
Registers a new script choice to an existing choice configurable which can be obtained from existing modules.
Link copied to clipboard
Registers a new script command
Link copied to clipboard
fun registerMode(modeValueGroup: ModeValueGroup<Mode>, modeObject: Map<String, Any>, callback: Consumer<Mode>)
Registers a new script mode to an existing mode value group which can be obtained from existing modules.
Link copied to clipboard
Registers a new script module