22 public const ID = DataStoreValueType::DOUBLE;
24 public function __construct(
25 private readonly
float $value
28 public function getValue() :
float{
return $this->value; }
30 public function getTypeId() :
int{
34 public function write(ByteBufferWriter $out) :
void{
35 LE::writeDouble($out, $this->value);
38 public static function read(ByteBufferReader $in) :
self{
39 return new self(LE::readDouble($in));