# Inventories

Lets scripts identify inventory wrappers through the `Inventories` global,  
instead of matching screen-name strings.  
```js
const inv = Player.openInventory();  
if (inv instanceof Inventories.Villager) {
  Chat.log(inv.getTrades());  
}
```

These names are available in JavaScript and Python without importing anything. They are read-only aliases of Java types, so `instanceof` works as usual.

| Script name | What it is |
| --- | --- |
| [`Inventories.Anvil`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/AnvilInventory.md) | Handle for an open anvil screen. |
| [`Inventories.Beacon`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/BeaconInventory.md) | Handle for an open beacon screen. |
| [`Inventories.BrewingStand`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/BrewingStandInventory.md) | Exposes a brewing stand's potion, ingredient, and fuel slots by name, with helpers to check recipes and preview brewing results without changing the stand. |
| [`Inventories.Cartography`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/CartographyInventory.md) | A handle for an open cartography table screen. |
| [`Inventories.Container`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/ContainerInventory.md) | Inventory handle for chest-like container screens. |
| [`Inventories.Crafting`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/CraftingInventory.md) | Provides access to the input grid and result of a crafting menu. |
| [`Inventories.Creative`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/CreativeInventory.md) | Handles the creative inventory screen and its item tabs. |
| [`Inventories.Enchant`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/EnchantInventory.md) | Handles an open enchanting table screen. |
| [`Inventories.Furnace`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/FurnaceInventory.md) | Inventory wrapper for a furnace screen, exposing its input, fuel, result, and smelting state. |
| [`Inventories.GrindStone`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/GrindStoneInventory.md) | Handle for an open grindstone screen. |
| [`Inventories.Horse`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/HorseInventory.md) | Handle for an open horse, mule, donkey, llama, or camel inventory screen. |
| [`Inventories.Inventory`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/Inventory.md) | Wraps a container screen's menu; specialized subclasses represent recognized screen types. |
| [`Inventories.Loom`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/LoomInventory.md) | Provides access to pattern selection in an open loom screen. |
| [`Inventories.Player`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/PlayerInventory.md) | The player's inventory screen, including its crafting result, input grid, equipment, and hotbar. |
| [`Inventories.Recipe`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/RecipeInventory.md) | Base API for recipe-book screens, exposing their input dimensions, cells, output, and recipe-book entries. |
| [`Inventories.Smithing`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/SmithingInventory.md) | Wraps an open smithing table screen. |
| [`Inventories.StoneCutter`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/StoneCutterInventory.md) | Handles an open stonecutter screen. |
| [`Inventories.Villager`](/2.2.0/26.3/classes/com/jsmacrosce/jsmacros/client/api/classes/inventory/VillagerInventory.md) | Handles an open villager trading screen. |

