22 public const ID = PackSettingType::BOOL;
26 public function __construct(
string $name,
bool $value){
27 parent::__construct($name);
28 $this->value = $value;
31 public function getValue() :
bool{
35 public function getTypeId() : PackSettingType{
39 public function write(ByteBufferWriter $out) :
void{
40 CommonTypes::putBool($out, $this->value);
43 public static function read(ByteBufferReader $in,
string $name) :
self{
44 return new self($name, CommonTypes::getBool($in));