23 public function __construct(
24 private int $topBlock,
25 private int $midBlock,
26 private int $seaFloorBlock,
27 private int $foundationBlock,
28 private int $seaBlock,
29 private int $seaFloorDepth
32 public function getTopBlock() :
int{
return $this->topBlock; }
34 public function getMidBlock() :
int{
return $this->midBlock; }
36 public function getSeaFloorBlock() :
int{
return $this->seaFloorBlock; }
38 public function getFoundationBlock() :
int{
return $this->foundationBlock; }
40 public function getSeaBlock() :
int{
return $this->seaBlock; }
42 public function getSeaFloorDepth() :
int{
return $this->seaFloorDepth; }
44 public static function read(ByteBufferReader $in) :
self{
45 $topBlock = LE::readUnsignedInt($in);
46 $midBlock = LE::readUnsignedInt($in);
47 $seaFloorBlock = LE::readUnsignedInt($in);
48 $foundationBlock = LE::readUnsignedInt($in);
49 $seaBlock = LE::readUnsignedInt($in);
50 $seaFloorDepth = LE::readSignedInt($in);
62 public function write(ByteBufferWriter $out) :
void{
63 LE::writeUnsignedInt($out, $this->topBlock);
64 LE::writeUnsignedInt($out, $this->midBlock);
65 LE::writeUnsignedInt($out, $this->seaFloorBlock);
66 LE::writeUnsignedInt($out, $this->foundationBlock);
67 LE::writeUnsignedInt($out, $this->seaBlock);
68 LE::writeSignedInt($out, $this->seaFloorDepth);