24 public function __construct(
25 private float $noiseFrequencyScale,
26 private float $noiseLowerBound,
27 private float $noiseUpperBound,
28 private int $heightMinType,
29 private int $heightMin,
30 private int $heightMaxType,
31 private int $heightMax,
35 public function getNoiseFrequencyScale() :
float{
return $this->noiseFrequencyScale; }
37 public function getNoiseLowerBound() :
float{
return $this->noiseLowerBound; }
39 public function getNoiseUpperBound() :
float{
return $this->noiseUpperBound; }
41 public function getHeightMinType() :
int{
return $this->heightMinType; }
43 public function getHeightMin() :
int{
return $this->heightMin; }
45 public function getHeightMaxType() :
int{
return $this->heightMaxType; }
47 public function getHeightMax() :
int{
return $this->heightMax; }
51 public static function read(ByteBufferReader $in) :
self{
52 $noiseFrequencyScale = LE::readFloat($in);
53 $noiseLowerBound = LE::readFloat($in);
54 $noiseUpperBound = LE::readFloat($in);
55 $heightMinType = VarInt::readSignedInt($in);
56 $heightMin = LE::readSignedShort($in);
57 $heightMaxType = VarInt::readSignedInt($in);
58 $heightMax = LE::readSignedShort($in);
59 $surfaceMaterial = BiomeSurfaceMaterialData::read($in);
73 public function write(ByteBufferWriter $out) :
void{
74 LE::writeFloat($out, $this->noiseFrequencyScale);
75 LE::writeFloat($out, $this->noiseLowerBound);
76 LE::writeFloat($out, $this->noiseUpperBound);
77 VarInt::writeSignedInt($out, $this->heightMinType);
78 LE::writeSignedShort($out, $this->heightMin);
79 VarInt::writeSignedInt($out, $this->heightMaxType);
80 LE::writeSignedShort($out, $this->heightMax);
81 $this->surfaceMaterial->write($out);