# C00PacketKeepAlive

Packet sent by the client to keep the connection alive

### Example

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

### Extends

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

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

***

#### setKey()

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

Sets the key value

**Parameters**

**key**

`number`

The key value to set

**Returns**

`void`
