Enum in @basalt/menus
The windows a menu can be, and how many slots each has.
import { MenuType } from '@basalt/menus';Example
Section titled “Example”import { MenuType } from '@basalt/menus';
const value: MenuType = MenuType.Chest;console.log(value); // "chest"import { MenuType } from '@basalt/menus';
const value = MenuType.Chest;console.log(value); // "chest"Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Chest |
"chest" |
27 slots. |
DoubleChest |
"double_chest" |
54 slots, two chests side by side. |
EnderChest |
"ender_chest" |
27 slots. |
Barrel |
"barrel" |
27 slots. |
ShulkerBox |
"shulker_box" |
27 slots. |
Hopper |
"hopper" |
5 slots. |
Dispenser |
"dispenser" |
9 slots. |
Dropper |
"dropper" |
9 slots. |
Furnace |
"furnace" |
3 slots: the input, the fuel and the output. |
BlastFurnace |
"blast_furnace" |
3 slots, as a furnace’s. |
Smoker |
"smoker" |
3 slots, as a furnace’s. |
BrewingStand |
"brewing_stand" |
5 slots: the ingredient, three bottles, and the blaze powder. |
CraftingTable |
"crafting_table" |
9 slots, the 3x3 grid. Nothing crafts in it. Shows no title. |
Anvil |
"anvil" |
2 slots: the item and the material. Nothing is made in it. Shows no title. |
EnchantingTable |
"enchanting_table" |
2 slots: the item and the lapis. No enchantments are offered. |
Grindstone |
"grindstone" |
2 slots. Shows no title. |
Stonecutter |
"stonecutter" |
1 slot. Shows no title. |
Loom |
"loom" |
3 slots: the banner, the dye and the pattern. Shows no title. |
CartographyTable |
"cartography_table" |
2 slots: the map and the material. Shows no title. |
SmithingTable |
"smithing_table" |
3 slots: the template, the base and the addition. Shows no title. |
Beacon |
"beacon" |
1 slot, the payment. |