13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SET_TIME_PACKET;
24 public static function create(
int $time) :
self{
26 $result->time = $time & 0xffffffff;
31 $this->time = $in->getVarInt();
35 $out->putVarInt($this->time);
39 return $handler->handleSetTime($this);
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)
encodePayload(PacketSerializer $out)