在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MineStudio/KMCCC开源软件地址(OpenSource Url):https://github.com/MineStudio/KMCCC开源编程语言(OpenSource Language):C# 100.0%开源软件介绍(OpenSource Introduction):KMCCC如果你需要中文的介绍信息,请打开README_CN.md An OpenSource Minecraft Launcher for .Net Developers KMCCC.SharedShared Code Between KMCCC.Basic & KMCCC.Pro Included:
KMCCC.BasicBasic Version of KMCCC Included:
KMCCC.ProProfessional Version of KMCCC Included:
PlanWe plan to delay some parameter settings, (such as versionLocator) and make more features available in KMCCC.Pro SampleHow to initialize a LauncherCoreLauncherCore core = LauncherCore.Create(
new LauncherCoreCreationOption(
javaPath: Config.Instance.JavaPath, // by default it will be the first version finded
gameRootPath: null, // by defualt it will be ./.minecraft/
versionLocator: the Version Locator // by default it will be new JVersionLocator()
));
How to find Versionsvar versions = core.GetVersions();
var version = core.GetVersion("1.8");
unlaunchable Version will be ignored How to launch Minecraftvar result = core.Launch(new LaunchOptions
{
Version = App.LauncherCore.GetVersion(server.VersionId)
Authenticator = new OfflineAuthenticator("Steve"), // offline
//Authenticator = new YggdrasilLogin("*@*.*", "***", true), // online
MaxMemory = Config.Instance.MaxMemory, // optional
MinMemory = Config.Instance.MaxMemory, // optional
Mode = LaunchMode.MCLauncher, // optional
Server = new ServerInfo {Address = "mc.hypixel.net"}, //optional
Size = new WindowSize {Height = 768, Width = 1280} //optional
}, (Action<MinecraftLaunchArguments>) (x => { })); // optional ( modify arguments before launching Using anonymous reportReporter.SetClientName("Your launcher's name"); // set name
Reporter.SetReportLevel(ReportLevel.Full); // full report
//Reporter.SetReportLevel(ReportLevel.Basic); // basic report
//Reporter.SetReportLevel(ReportLevel.Min); // simplified report
//Reporter.SetReportLevel(ReportLevel.None); // turn off Enjoy! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论