49 $this->windowId = Byte::readUnsigned($in);
50 $this->windowType = Byte::readUnsigned($in);
51 $this->windowSlotCount = VarInt::readSignedInt($in);
52 $this->actorUniqueId = CommonTypes::getActorUniqueId($in);
53 $this->nbt =
new CacheableNbt(CommonTypes::getNbtCompoundRoot($in));
57 Byte::writeUnsigned($out, $this->windowId);
58 Byte::writeUnsigned($out, $this->windowType);
59 VarInt::writeSignedInt($out, $this->windowSlotCount);
60 CommonTypes::putActorUniqueId($out, $this->actorUniqueId);
61 $out->writeByteArray($this->nbt->getEncodedNbt());