Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / DialogDef

Class: DialogDef โ€‹

Defined in: core/values/dialog.ts:13

A dialog screen of any vanilla type, typed from vanilla-mcdoc. Keys are camelCase. 1.21.6+.

dp.dialog("menu", DialogDef.of("multi_action", { title: "Menu", actions: [{ label: "Heal", action: click.function(heal) }], }))

Properties โ€‹

args โ€‹

readonly args: object

Defined in: core/values/dialog.ts:16


type โ€‹

readonly type: keyof DialogArgs

Defined in: core/values/dialog.ts:15

Methods โ€‹

of() โ€‹

static of<K>(type, args): DialogDef

Defined in: core/values/dialog.ts:19

Type Parameters โ€‹

K โ€‹

K extends keyof DialogArgs

Parameters โ€‹

type โ€‹

K | `minecraft:${K}`

args โ€‹

DialogArgs[K]

Returns โ€‹

DialogDef

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.