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