color = $color; } public function encode(Vector3 $pos) : array{ return [LevelEventPacket::standardParticle(ParticleIds::MOB_SPELL, $this->color->toARGB(), $pos)]; } }