46 $this->actorRuntimeId =
CommonTypes::getActorRuntimeId($in);
47 $this->item = CommonTypes::getItemStackWrapper($in);
48 $this->inventorySlot = Byte::readUnsigned($in);
49 $this->hotbarSlot = Byte::readUnsigned($in);
50 $this->windowId = Byte::readUnsigned($in);
54 CommonTypes::putActorRuntimeId($out, $this->actorRuntimeId);
55 CommonTypes::putItemStackWrapper($out, $this->item);
56 Byte::writeUnsigned($out, $this->inventorySlot);
57 Byte::writeUnsigned($out, $this->hotbarSlot);
58 Byte::writeUnsigned($out, $this->windowId);