13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
24 public const NETWORK_ID = ProtocolInfo::EDITOR_NETWORK_PACKET;
26 private bool $isRouteToManager;
36 $result->isRouteToManager = $isRouteToManager;
37 $result->payload = $payload;
44 public function isRouteToManager() : bool{ return $this->isRouteToManager; }
47 $this->isRouteToManager = $in->getBool();
48 $this->payload =
new CacheableNbt($in->getNbtCompoundRoot());
52 $out->putBool($this->isRouteToManager);
53 $out->put($this->payload->getEncodedNbt());
57 return $handler->handleEditorNetwork($this);
encodePayload(PacketSerializer $out)
static create(bool $isRouteToManager, CacheableNbt $payload)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)