13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::CODE_BUILDER_PACKET;
23 private bool $openCodeBuilder;
28 public static function create(
string $url,
bool $openCodeBuilder) : self{
31 $result->openCodeBuilder = $openCodeBuilder;
35 public function getUrl() : string{
39 public function openCodeBuilder() : bool{
40 return $this->openCodeBuilder;
44 $this->url = $in->getString();
45 $this->openCodeBuilder = $in->
getBool();
49 $out->putString($this->url);
50 $out->putBool($this->openCodeBuilder);
54 return $handler->handleCodeBuilder($this);
static create(string $url, bool $openCodeBuilder)
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)