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