# S2FPacketSetSlot

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

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### Methods

#### getItemStack()

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

Gets the new ItemStack in the slot

**Returns**

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

The ItemStack object

***

#### getPacketID()

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

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/packet#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
