> For the complete documentation index, see [llms.txt](https://espergames.gitbook.io/inventool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espergames.gitbook.io/inventool/scripting/slot.md). Agents can also search and read this documentation through its [MCP server](https://espergames.gitbook.io/inventool/~gitbook/mcp).

# Slot

A class that tepresents a single item slot.

## Fields & Properties

| Name                    | Type                                 | Description                                                                                                                                                                   |
| ----------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name                    | string                               | The name of the slot.                                                                                                                                                         |
| linkedInventory         | Inventory                            | The inventory to accept items from.                                                                                                                                           |
| removeFromInventory     | bool                                 | If assigning an item to a slot should remove it from the inventory that it's currently inside of. The item will be returned to the inventory when it's removed from the slot. |
| acceptedEnchantmentMode | BlockOptions.AcceptedEnchantmentMode | The accepted item enchantment mode.                                                                                                                                           |
| acceptedItemTypes       | List\<ItemType>                      | A list of item types that this slot can accept.                                                                                                                               |
| itemStack               | ItemStack                            | The item stack inside the slot.                                                                                                                                               |
| spawnedInstance         | GameObject                           | An instance spawned for the equipped item. This needs to be handled manually.                                                                                                 |
| isEquipmentSlot         | bool                                 | If this is an equipment slot.                                                                                                                                                 |
| HasItem                 | bool                                 | If this slot contains an item.                                                                                                                                                |

## Methods

Use the `AcceptsItem` method to check if an ItemStack can be set to this slot.
