48 string $biomeIdentifier,
49 ?
string $playerIdentifier,
50 GraphicsOverrideParameterType $parameterType,
54 $result->values = $values;
55 $result->unknownFloat = $unknownFloat;
56 $result->unknownVector3 = $unknownVector3;
57 $result->biomeIdentifier = $biomeIdentifier;
58 $result->playerIdentifier = $playerIdentifier;
59 $result->parameterType = $parameterType;
60 $result->reset = $reset;
82 $count = VarInt::readUnsignedInt($in);
83 for($i = 0; $i < $count; ++$i){
84 $this->values[] = ParameterKeyframeValue::read($in);
86 $this->unknownFloat = CommonTypes::readOptional($in, LE::readFloat(...));
87 $this->unknownVector3 = CommonTypes::readOptional($in, CommonTypes::getVector3(...));
88 $this->biomeIdentifier = CommonTypes::getString($in);
89 $this->playerIdentifier = CommonTypes::readOptional($in, CommonTypes::getString(...));
90 $this->parameterType = GraphicsOverrideParameterType::fromPacket(Byte::readUnsigned($in));
91 $this->reset = CommonTypes::getBool($in);
95 VarInt::writeUnsignedInt($out, count($this->values));
96 foreach($this->values as $value){
99 CommonTypes::writeOptional($out, $this->unknownFloat, LE::writeFloat(...));
100 CommonTypes::writeOptional($out, $this->unknownVector3, CommonTypes::putVector3(...));
101 CommonTypes::putString($out, $this->biomeIdentifier);
102 CommonTypes::writeOptional($out, $this->playerIdentifier, CommonTypes::putString(...));
103 Byte::writeUnsigned($out, $this->parameterType->value);
104 CommonTypes::putBool($out, $this->reset);