OverviewPacketsContainerOpen
ID 0x2E · 46BothInventory
ContainerOpen
Opens a container UI (chest, furnace, horse, ...), positioning it and binding entity containers.
container-open.bin
struct ContainerOpen {
ContainerID ContainerId;
ContainerType Type;
BlockPos Pos;
ActorUniqueID EntityUniqueId;
}Structure
| Field | Type | Description |
|---|---|---|
| Container Id | ContainerID | |
| Type | ContainerType | |
| Pos | BlockPos | |
| Entity Unique Id | ActorUniqueID |
Structure of BlockPos
| Field | Type | Description |
|---|---|---|
| X | varint32 | |
| Y | varint32 | |
| Z | varint32 |
Notes
- Both sides may send it (the client can open its own inventory with type -1/Inventory).
