You can change the default behavior of the launcher.
Example
var path =newMinecraftPath();var parameters =MinecraftLauncherParameters.CreateDefault(path);// set default RulesEvaluatorparameters.RulesEvaluator=newRulesEvaluator();// load only the locally installed version parameters.VersionLoader=newLocalJsonVersionLoader(path);// set default JavaPathResolverparameters.JavaPathResolver=newMinecraftJavaPathResolver(path);// use single-threaded game installerparameters.GameInstaller=newBasicGameInstaller(parameters.HttpClient);// modify default file extractorsvar extractors =DefaultFileExtractors.CreateDefault(parameters.HttpClient,parameters.RulesEvaluator!,parameters.JavaPathResolver!);extractors.Asset!.AssetServer=MojangServer.ResourceDownload; // set asset download serverextractors.Library!.LibraryServer=MojangServer.Library; // set library download serverextractors.Java=null; // remove JavaFileExtractorextractors.ExtraExtractors= []; // add additional file extractorparameters.FileExtractors=extractors.ToExtractorCollection();// initialize a new launcher with parametersvar launcher =newMinecraftLauncher(parameters);
var extractors =DefaultFileExtractors.CreateDefault( httpClient,parameters.RulesEvaluator,parameters.JavaPathResolver);parameters.FileExtractors=extractors.ToExtractorCollection();