13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
24 public const NETWORK_ID = ProtocolInfo::SERVER_STATS_PACKET;
26 private float $serverTime;
27 private float $networkTime;
32 public static function create(
float $serverTime,
float $networkTime) : self{
34 $result->serverTime = $serverTime;
35 $result->networkTime = $networkTime;
39 public function getServerTime() : float{ return $this->serverTime; }
41 public function getNetworkTime() : float{ return $this->networkTime; }
44 $this->serverTime = $in->getLFloat();
49 $out->putLFloat($this->serverTime);
50 $out->putLFloat($this->networkTime);
54 return $handler->handleServerStats($this);
static create(float $serverTime, float $networkTime)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)