13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::CREATE_PHOTO_PACKET;
22 private int $actorUniqueId;
23 private string $photoName;
24 private string $photoItemName;
29 public static function create(
int $actorUniqueId,
string $photoName,
string $photoItemName) : self{
31 $result->actorUniqueId = $actorUniqueId;
32 $result->photoName = $photoName;
33 $result->photoItemName = $photoItemName;
37 public function getActorUniqueId() : int{ return $this->actorUniqueId; }
39 public function getPhotoName() : string{ return $this->photoName; }
41 public function getPhotoItemName() : string{ return $this->photoItemName; }
44 $this->actorUniqueId = $in->getLLong();
50 $out->putLLong($this->actorUniqueId);
51 $out->putString($this->photoName);
52 $out->putString($this->photoItemName);
56 return $handler->handleCreatePhoto($this);
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
static create(int $actorUniqueId, string $photoName, string $photoItemName)
handle(PacketHandlerInterface $handler)