MCPcopy Create free account
hub / github.com/PrismarineJS/node-minecraft-protocol / processMessage

Function processMessage

src/client/chat.js:33–33  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

31 // from the normal JSON structure, so it needs to be normalized. prismarine-chat processNbtMessage will do that by default
32 // on a fromNotch call. Since we don't call fromNotch here (done in mineflayer), we manually call processNbtMessage
33 const processMessage = (msg) => mcData.supportFeature('chatPacketsUseNbtComponents') ? processNbtMessage(msg) : msg
34
35 // This stores the last 128 inbound (signed) messages for 1.19.3 chat validation
36 client._signatureCache = new SignatureCache()

Callers 1

chat.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected