0x0D C0DPacketCloseWindow

Player closes an inventory window (chest, crafting table, furnace, etc).

Serverbound (Client → Server) · PLAY · net/minecraft/network/play/client/C0DPacketCloseWindow.java
playerinventorycontainer

Fields

FieldTypeDescription
windowIdbyteWindow ID of the container being closed

Wire Encoding

FieldTypeNotes
Window IDunsigned byteServer-assigned window ID from S2DPacketOpenWindow

MCP References

MCPNetHandlerPlayServer.processCloseWindow()

Handler Interface

HNDINetHandlerPlayServer

Notes

Rise 6.0 CancelInventoryMove cancels C0D to keep the inventory 'open' and allow WASD movement. RektSky B5 ChestStealer sends C0D after stealing. Jigsaw 0.26 InventoryPlus cancels C0D. Sigma 4.11 InventoryWalk cancels C0D.

implementation Implementation Cases

← Back to all packets