26 public function __construct(
32 public function getClockId() :
int{
return $this->clockId; }
34 public function getTime() :
int{
return $this->time; }
36 public function isPaused() :
bool{
return $this->paused; }
38 public static function read(ByteBufferReader $in) :
self{
39 $clockId = VarInt::readUnsignedLong($in);
40 $time = VarInt::readSignedInt($in);
41 $paused = CommonTypes::getBool($in);
50 public function write(ByteBufferWriter $out) :
void{
51 VarInt::writeUnsignedLong($out, $this->clockId);
52 VarInt::writeSignedInt($out, $this->time);
53 CommonTypes::putBool($out, $this->paused);