0x09 S09PacketHeldItemChange

Server confirms the player's held item slot change (echo back of C09).

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S09PacketHeldItemChange.java
playerinventoryitem

Fields

FieldTypeDescription
slotIdbyteHotbar slot 0-8

Wire Encoding

FieldTypeNotes
Slotbyte0-8

MCP References

MCPNetHandlerPlayClient.handleHeldItemChange()

Handler Interface

HNDINetHandlerPlayClient

Notes

This is the server echo of C09PacketHeldItemChange. The client uses this to stay in sync with the server on which hotbar slot is selected.

implementation Implementation Cases

AutoTool

Detect forced slot change from server. Respond with slot sync.

Vanilla hook: EventReceivePacket
InventoryManager

Detect forced slot change from server. Respond with slot sync.

Vanilla hook: EventReceivePacket
← Back to all packets