24 public function __construct(
25 private string $noise,
26 private float $threshold,
32 public function getNoise() :
string{
return $this->noise; }
34 public function getThreshold() :
float{
return $this->threshold; }
36 public function getMin() :
float{
return $this->min; }
38 public function getMax() :
float{
return $this->max; }
40 public function getBlock() :
int{
return $this->block; }
42 public static function read(ByteBufferReader $in) :
self{
43 $noise = CommonTypes::getString($in);
44 $threshold = LE::readFloat($in);
45 $min = LE::readFloat($in);
46 $max = LE::readFloat($in);
47 $block = LE::readUnsignedInt($in);
58 public function write(ByteBufferWriter $out) :
void{
59 CommonTypes::putString($out, $this->noise);
60 LE::writeFloat($out, $this->threshold);
61 LE::writeFloat($out, $this->min);
62 LE::writeFloat($out, $this->max);
63 LE::writeUnsignedInt($out, $this->block);