39 public static function create(array $values,
string $biomeIdentifier, GraphicsOverrideParameterType $parameterType,
bool $reset) : self{
41 $result->values = $values;
42 $result->biomeIdentifier = $biomeIdentifier;
43 $result->parameterType = $parameterType;
44 $result->reset = $reset;
60 $count = VarInt::readUnsignedInt($in);
61 for($i = 0; $i < $count; ++$i){
62 $this->values[] = ParameterKeyframeValue::read($in);
64 $this->biomeIdentifier = CommonTypes::getString($in);
65 $this->parameterType = GraphicsOverrideParameterType::fromPacket(Byte::readUnsigned($in));
66 $this->reset = CommonTypes::getBool($in);
70 VarInt::writeUnsignedInt($out, count($this->values));
71 foreach($this->values as $value){
74 CommonTypes::putString($out, $this->biomeIdentifier);
75 Byte::writeUnsigned($out, $this->parameterType->value);
76 CommonTypes::putBool($out, $this->reset);