> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/net/minecraft/inventory/slot.md).

# Slot

A slot in an inventory.

### Properties

#### slotNumber

> `readonly` **slotNumber**: `number`

The index of this slot.

***

#### xDisplayPosition

> `readonly` **xDisplayPosition**: `number`

The X position of this slot.

***

#### yDisplayPosition

> `readonly` **yDisplayPosition**: `number`

The Y position of this slot.

### Methods

#### getStack()

> **getStack**(): [`ItemStack`](/api/net/minecraft/item/itemstack.md)

**Returns**

[`ItemStack`](/api/net/minecraft/item/itemstack.md)

The stack in this slot.
