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