Skip to content

Menu DSL

Reference

The inline openMenu(…) path is the preferred quick-flow API for most menu work.

Immutable menu definition.

Required

Per-player runtime menu instance created when a menu opens.

Required

slot object

Assigns one slot render and click contract.

Optional

Applies a repeated filler item to unassigned menu slots.

Optional

message string

MiniMessage-first feedback path for menu clicks.

Optional

Literal text escape hatch when you truly need raw text.

Optional

Closes the active menu session after click handling.

Optional

Adds paged rendering behavior to repeated content areas.

Optional

fun menu(title: String, rows: Int = 3, block: DaisyMenuBuilder.() -> Unit): DaisyMenu
fun Player.openMenu(menu: DaisyMenu): DaisyMenuSession
fun Player.openMenu(
title: String,
rows: Int = 3,
block: DaisyMenuBuilder.() -> Unit,
): DaisyMenuSession