registerChoice

fun registerChoice(modeValueGroup: ModeValueGroup<Mode>, modeObject: Map<String, Any>, callback: Consumer<Mode>)

Deprecated

Use registerMode instead

Replace with

registerMode(modeValueGroup, modeObject, callback)

Registers a new script choice to an existing choice configurable which can be obtained from existing modules.

Parameters

modeValueGroup

The choice configurable to add the choice to.

modeObject

JavaScript object containing information about the choice.

callback

JavaScript function to which the corresponding instance of ScriptMode is passed.

See also