13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::PHOTO_TRANSFER_PACKET;
22 public string $photoName;
23 public string $photoData;
24 public string $bookId;
26 public int $sourceType;
27 public int $ownerActorUniqueId;
28 public string $newPhotoName;
39 int $ownerActorUniqueId,
43 $result->photoName = $photoName;
44 $result->photoData = $photoData;
45 $result->bookId = $bookId;
46 $result->type = $type;
47 $result->sourceType = $sourceType;
48 $result->ownerActorUniqueId = $ownerActorUniqueId;
49 $result->newPhotoName = $newPhotoName;
54 $this->photoName = $in->getString();
58 $this->sourceType = $in->
getByte();
59 $this->ownerActorUniqueId = $in->
getLLong();
64 $out->putString($this->photoName);
65 $out->putString($this->photoData);
66 $out->putString($this->bookId);
67 $out->putByte($this->type);
68 $out->putByte($this->sourceType);
69 $out->putLLong($this->ownerActorUniqueId);
70 $out->putString($this->newPhotoName);
74 return $handler->handlePhotoTransfer($this);
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
static create(string $photoName, string $photoData, string $bookId, int $type, int $sourceType, int $ownerActorUniqueId, string $newPhotoName,)
decodePayload(PacketSerializer $in)