Enum in @basalt/menus
What a player did to a slot.
import { MenuClickAction } from '@basalt/menus';Example
Section titled “Example”import { MenuClickAction } from '@basalt/menus';
const value: MenuClickAction = MenuClickAction.Take;console.log(value); // "take"import { MenuClickAction } from '@basalt/menus';
const value = MenuClickAction.Take;console.log(value); // "take"Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Take |
"take" |
Picked up onto the cursor. |
Place |
"place" |
Put down from the cursor, or from the creative list. |
Swap |
"swap" |
Swapped with what the cursor held. |
Drop |
"drop" |
Thrown out of the slot. |
Shift |
"shift" |
Moved straight between the menu and the inventory with a shift-click. |