# 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`](https://scripting.breeze.rip/api/net/minecraft/item/itemstack)

**Returns**

[`ItemStack`](https://scripting.breeze.rip/api/net/minecraft/item/itemstack)

The stack in this slot.
