13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::DEBUG_INFO_PACKET;
22 private int $actorUniqueId;
28 public static function create(
int $actorUniqueId,
string $data) : self{
30 $result->actorUniqueId = $actorUniqueId;
31 $result->data = $data;
35 public function getActorUniqueId() : int{ return $this->actorUniqueId; }
37 public function getData() : string{ return $this->data; }
40 $this->actorUniqueId = $in->getActorUniqueId();
45 $out->putActorUniqueId($this->actorUniqueId);
46 $out->putString($this->data);
50 return $handler->handleDebugInfo($this);
encodePayload(PacketSerializer $out)
static create(int $actorUniqueId, string $data)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)