> 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/network/server/s2fpacketsetslot.md).

# S2FPacketSetSlot

Represents a packet that is sent when an item slot changes in a container

### Extends

* [`Packet`](/api/net/minecraft/network/packet.md)

### Methods

#### getItemStack()

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

Gets the new ItemStack in the slot

**Returns**

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

The ItemStack object

***

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#getpacketid)

***

#### getSlot()

> **getSlot**(): `number`

Gets the slot number that was changed

**Returns**

`number`

The slot number

***

#### getWindowId()

> **getWindowId**(): `number`

Gets the ID of the window containing the slot

**Returns**

`number`

The window ID
