23 public function __construct(
24 private float $temperature,
25 private float $downfall,
26 private float $snowAccumulationMin,
27 private float $snowAccumulationMax,
30 public function getTemperature() :
float{
return $this->temperature; }
32 public function getDownfall() :
float{
return $this->downfall; }
34 public function getSnowAccumulationMin() :
float{
return $this->snowAccumulationMin; }
36 public function getSnowAccumulationMax() :
float{
return $this->snowAccumulationMax; }
38 public static function read(ByteBufferReader $in) :
self{
39 $temperature = LE::readFloat($in);
40 $downfall = LE::readFloat($in);
41 $snowAccumulationMin = LE::readFloat($in);
42 $snowAccumulationMax = LE::readFloat($in);
52 public function write(ByteBufferWriter $out) :
void{
53 LE::writeFloat($out, $this->temperature);
54 LE::writeFloat($out, $this->downfall);
55 LE::writeFloat($out, $this->snowAccumulationMin);
56 LE::writeFloat($out, $this->snowAccumulationMax);