> 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/newgen/api/net/minecraft/network/protocol/game/serverbounduseitempacket.md).

# ServerboundUseItemPacket

Uses the held item in the air.

### Extends

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

### Constructors

#### Constructor

> **new ServerboundUseItemPacket**(`hand`, `sequence`, `yRot`, `xRot`): `ServerboundUseItemPacket`

Uses the held item in the air.

**Parameters**

**hand**

[`InteractionHand`](/newgen/api/enum_types/interactionhand.md)

The hand.

**sequence**

`number`

The block-prediction sequence number.

**yRot**

`number`

The yaw.

**xRot**

`number`

The pitch.

**Returns**

`ServerboundUseItemPacket`

**Overrides**

`Packet.constructor`

### Properties

#### hand

> `readonly` **hand**: [`InteractionHand`](/newgen/api/enum_types/interactionhand.md)

The hand.

***

#### id

> `readonly` **id**: `string`

The protocol id, e.g. "minecraft:swing". Stable across versions, unlike class names.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`id`](/newgen/api/net/minecraft/network/protocol/packet.md#id)

***

#### name

> `readonly` **name**: `string`

The class name, e.g. "ServerboundSwingPacket".

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`name`](/newgen/api/net/minecraft/network/protocol/packet.md#name)

***

#### sequence

> `readonly` **sequence**: `number`

The block-prediction sequence number.

***

#### serverbound

> `readonly` **serverbound**: `boolean`

True for packets the client sends, false for ones it receives.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`serverbound`](/newgen/api/net/minecraft/network/protocol/packet.md#serverbound)

***

#### xRot

> `readonly` **xRot**: `number`

The pitch it was used at.

***

#### yRot

> `readonly` **yRot**: `number`

The yaw it was used at.
