13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::COMMAND_REQUEST_PACKET;
23 public string $command;
25 public bool $isInternal;
33 $result->command = $command;
34 $result->originData = $originData;
35 $result->isInternal = $isInternal;
36 $result->version = $version;
41 $this->command = $in->getString();
43 $this->isInternal = $in->
getBool();
48 $out->putString($this->command);
49 $out->putCommandOriginData($this->originData);
50 $out->putBool($this->isInternal);
55 return $handler->handleCommandRequest($this);
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
static create(string $command, CommandOriginData $originData, bool $isInternal, int $version)
encodePayload(PacketSerializer $out)