# S09PacketHeldItemChange

Represents a packet sent from the server when the held item hotbar slot changes

### Extends

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

### Methods

#### getHeldItemHotbarIndex()

> **getHeldItemHotbarIndex**(): `number`

Gets the new selected hotbar slot index

**Returns**

`number`

The hotbar slot index (0-8)

***

#### 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)
