13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
25 public const NETWORK_ID = ProtocolInfo::REQUEST_NETWORK_SETTINGS_PACKET;
27 private int $protocolVersion;
32 public static function create(
int $protocolVersion) : self{
34 $result->protocolVersion = $protocolVersion;
38 public function canBeSentBeforeLogin() : bool{
42 public function getProtocolVersion() : int{ return $this->protocolVersion; }
45 $this->protocolVersion = $in->getInt();
49 $out->putInt($this->protocolVersion);
53 return $handler->handleRequestNetworkSettings($this);
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
static create(int $protocolVersion)