13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol\types;
20 public function __construct(
21 private int $movementType,
22 private int $rewindHistorySize,
23 private bool $serverAuthoritativeBlockBreaking
26 public function getMovementType() :
int{
return $this->movementType; }
28 public function getRewindHistorySize() :
int{
return $this->rewindHistorySize; }
30 public function isServerAuthoritativeBlockBreaking() :
bool{
return $this->serverAuthoritativeBlockBreaking; }
35 $serverAuthBlockBreaking = $in->
getBool();
36 return new self($movementType, $rewindHistorySize, $serverAuthBlockBreaking);
41 $out->
putVarInt($this->rewindHistorySize);
42 $out->putBool($this->serverAuthoritativeBlockBreaking);