23 use GetTypeIdFromConstTrait;
25 public const ID = DataStoreUpdateValueType::DOUBLE;
27 public function __construct(
28 private readonly
float $value
31 public function getValue() :
float{
return $this->value; }
33 public function write(ByteBufferWriter $out) :
void{
34 LE::writeDouble($out, $this->value);
37 public static function read(ByteBufferReader $in) :
self{
38 return new self(LE::readDouble($in));