/// <summary> /// 核心选项 /// </summary> /// <param name="gameRootPath">游戏根目录,默认为 ./.minecraft </param> /// <param name="javaPath">JAVA地址,默认为自动搜寻所的第一个</param> /// <param name="versionLocator">Version定位器,默认为 JVersionLoacator</param> public LauncherCoreCreationOption(string gameRootPath = null, string javaPath = null, IVersionLocator versionLocator = null) { GameRootPath = new DirectoryInfo(gameRootPath ?? ".minecraft").FullName; JavaPath = javaPath ?? SystemTools.FindJava().FirstOrDefault(); VersionLocator = versionLocator ?? new JVersionLocator(); if (!Directory.Exists(GameRootPath)) { Directory.CreateDirectory(GameRootPath); } }