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

# C00PacketKeepAlive

Packet sent by the client to keep the connection alive

### Example

```ts
var packet = new C00PacketKeepAlive(123);
```

### Extends

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

### Constructors

#### Constructor

> **new C00PacketKeepAlive**(`key`): `C00PacketKeepAlive`

**Parameters**

**key**

`number`

The key

**Returns**

`C00PacketKeepAlive`

**Overrides**

`Packet.constructor`

### Methods

#### getKey()

> **getKey**(): `number`

Gets the key value

**Returns**

`number`

The key value

***

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

***

#### setKey()

> **setKey**(`key`): `void`

Sets the key value

**Parameters**

**key**

`number`

The key value to set

**Returns**

`void`
