Appearance
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 โ
readonlyplacer:ItemValue
Defined in: plugins/gui/types.ts:96
A barrel item that places this GUI: named, and filled with its filler and buttons.
slots โ
readonlyslots: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