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