24 public function __construct(
25 private int $temperature,
29 public function getTemperature() :
int{
return $this->temperature; }
31 public function getWeight() :
int{
return $this->weight; }
33 public static function read(ByteBufferReader $in) :
self{
34 $temperature = VarInt::readSignedInt($in);
35 $weight = LE::readUnsignedInt($in);
43 public function write(ByteBufferWriter $out) :
void{
44 VarInt::writeSignedInt($out, $this->temperature);
45 LE::writeUnsignedInt($out, $this->weight);