> 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/serverboundplayerinputpacket.md).

# ServerboundPlayerInputPacket

The movement keys the player holds.

### Extends

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

### Constructors

#### Constructor

> **new ServerboundPlayerInputPacket**(`forward`, `backward`, `left`, `right`, `jump`, `shift`, `sprint`): `ServerboundPlayerInputPacket`

A key state.

**Parameters**

**forward**

`boolean`

Whether forward is held.

**backward**

`boolean`

Whether backward is held.

**left**

`boolean`

Whether left is held.

**right**

`boolean`

Whether right is held.

**jump**

`boolean`

Whether jump is held.

**shift**

`boolean`

Whether shift is held.

**sprint**

`boolean`

Whether sprint is held.

**Returns**

`ServerboundPlayerInputPacket`

**Overrides**

`Packet.constructor`

### Properties

#### backward

> `readonly` **backward**: `boolean`

Whether backward is held.

***

#### forward

> `readonly` **forward**: `boolean`

Whether forward is held.

***

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

***

#### jump

> `readonly` **jump**: `boolean`

Whether jump is held.

***

#### left

> `readonly` **left**: `boolean`

Whether left is held.

***

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

***

#### right

> `readonly` **right**: `boolean`

Whether right is held.

***

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

***

#### shift

> `readonly` **shift**: `boolean`

Whether shift is held.

***

#### sprint

> `readonly` **sprint**: `boolean`

Whether sprint is held.
