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

spool / Gui

Interface: Gui<K> โ€‹

Defined in: plugins/gui/types.ts:94

The handle dp.gui(...) returns.

Type Parameters โ€‹

K โ€‹

K extends string

Properties โ€‹

placer โ€‹

readonly placer: ItemValue

Defined in: plugins/gui/types.ts:96

A barrel item that places this GUI: named, and filled with its filler and buttons.


slots โ€‹

readonly slots: Record<K, ItemSlot>

Defined in: plugins/gui/types.ts:98

Each named slot as a container.<n> slot.

Methods โ€‹

carry() โ€‹

carry(item, opts?): ItemValue

Defined in: plugins/gui/types.ts:105

Makes item open this GUI anywhere: right-click while holding it. item is matched as given, so mark it yourself (e.g. customData) if other copies shouldn't open it. Call once.

Parameters โ€‹

item โ€‹

ItemValue

opts? โ€‹

CarryOptions<K>

Returns โ€‹

ItemValue


place() โ€‹

place(ctx): void

Defined in: plugins/gui/types.ts:100

Sets this GUI's barrel down at the current position, replacing what's there.

Parameters โ€‹

ctx โ€‹

FunctionContext

Returns โ€‹

void

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