Container Close (clientbound)
Play 0x11, server → client.
play · 0x11 · clientbound (server → client)
Tells the client to close the open container window with windowId. The server sends it when the container is forced closed, for example when the chest block is broken or the player is teleported. The client closes the screen without sending a serverbound ContainerClose back.
Sent by the server, read by the client. Listen for it with client.on("ContainerClose", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
windowId |
ContainerID |
Send it
await client.sendPacket("ContainerClose", {
windowId: /* ContainerID */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/ContainerClose.ts