Skip to content

API reference / @jsprismarine/prismarine / chat/Chat

chat/Chat ​

Enumerations ​

ChatType ​

Defined in: prismarine/src/chat/Chat.ts:11

How a chat is shown. The values are the TextPacketType numbers the client reads.

RAW is a line the server has already formatted. CHAT is a player's own message: the client draws <name> in front of it from the author the packet names, and offers to mute or report that author by XUID.

Enumeration Members ​

ANNOUNCEMENT ​

ANNOUNCEMENT: 8

Defined in: prismarine/src/chat/Chat.ts:16

CHAT ​

CHAT: 1

Defined in: prismarine/src/chat/Chat.ts:13

RAW ​

RAW: 0

Defined in: prismarine/src/chat/Chat.ts:12

SYSTEM ​

SYSTEM: 6

Defined in: prismarine/src/chat/Chat.ts:15

TRANSLATION ​

TRANSLATION: 2

Defined in: prismarine/src/chat/Chat.ts:14

Classes ​

Variables ​

CHAT_TEXT_TYPE ​

const CHAT_TEXT_TYPE: Record<ChatType, TextPacketType>

Defined in: prismarine/src/chat/Chat.ts:22

The text packet type that carries each kind of chat to the client.