register Choice
fun registerChoice(modeValueGroup: ModeValueGroup<Mode>, modeObject: Map<String, Any>, callback: Consumer<Mode>)
Deprecated
Use registerMode instead
Replace with
registerMode(modeValueGroup, modeObject, callback)Content copied to clipboard
Registers a new script choice to an existing choice configurable which can be obtained from existing modules.
Parameters
mode Value Group
The choice configurable to add the choice to.
mode Object
JavaScript object containing information about the choice.
callback
JavaScript function to which the corresponding instance of ScriptMode is passed.