Chests - NiclasOlofsson/MiNET GitHub Wiki
To create a new chest:
- Create a Chest Block.
- Create and place a Chest Block Entity on same coordinates.
Then, on interaction:
- On UseItem..
- Send ContainerOpenPacket.
- Send ContainerSetContentPacket.
- Send TileEntityPackage.
When content change in the chest:
- Handle ContainerSetSlot for chest
- Handle ContainerSetSlot for player
When done:
- Handle ContainerClose for chest.