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