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

# C01PacketChatMessage

Represents a chat message packet sent from client to server.

### Extends

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

### Constructors

#### Constructor

> **new C01PacketChatMessage**(`message`): `C01PacketChatMessage`

Creates a new chat message packet with the specified message.

**Parameters**

**message**

`string`

**Returns**

`C01PacketChatMessage`

**Overrides**

`Packet.constructor`

### Methods

#### getMessage()

> **getMessage**(): `string`

**Returns**

`string`

The message content of this packet.

***

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

***

#### setMessage()

> **setMessage**(`message`): `void`

Sets the message content of this packet.

**Parameters**

**message**

`string`

**Returns**

`void`
