21 public function __construct(
23 private int $blockRuntimeId,
26 private int $syncedUpdateActorUniqueId,
27 private int $syncedUpdateType
30 public static function simple(
BlockPosition $blockPosition,
int $blockRuntimeId) :
self{
31 return new self($blockPosition, $blockRuntimeId, UpdateBlockPacket::FLAG_NETWORK, 0, 0);
34 public function getBlockPosition() :
BlockPosition{
return $this->blockPosition; }
36 public function getBlockRuntimeId() :
int{
return $this->blockRuntimeId; }
38 public function getFlags() :
int{
return $this->flags; }
40 public function getSyncedUpdateActorUniqueId() :
int{
return $this->syncedUpdateActorUniqueId; }
42 public function getSyncedUpdateType() :
int{
return $this->syncedUpdateType; }
51 return new self($blockPosition, $blockRuntimeId, $updateFlags, $syncedUpdateActorUniqueId, $syncedUpdateType);