• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

MineStudio/KMCCC: An OpenSource Minecraft Launcher for .Net Developers

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

MineStudio/KMCCC

开源软件地址(OpenSource Url):

https://github.com/MineStudio/KMCCC

开源编程语言(OpenSource Language):

C# 100.0%

开源软件介绍(OpenSource Introduction):

KMCCC

Join the chat at https://gitter.im/MineStudio/KMCCC Build status

如果你需要中文的介绍信息,请打开README_CN.md

An OpenSource Minecraft Launcher for .Net Developers

KMCCC.Shared

Shared Code Between KMCCC.Basic & KMCCC.Pro

Included:

  • Basic Launch Model (LauncherCore, LaunchOptions, ...)
  • Authentication Model (Yggdrasil, Offline, ...)
  • Java & System Information Finder
  • Zip Module using .Net Internal API ( MS.Internal.IO.Zip.* )
  • Basic VersionLocator (JVersion)
  • A set of useful extensions
  • A launch reporter that can be disabled
  • Custom authentication server

KMCCC.Basic

Basic Version of KMCCC

Included:

  • Everything in kMCCC.Shared
  • No more

KMCCC.Pro

Professional Version of KMCCC

Included:

  • Everything in KMCCC.Shared
  • Mojang API
  • [WIP] Game File Download & Fix & Check (Including Version, Library, Native&Assets)
  • [WIP] More useful extensions for LaunchHandle
  • [WIP] More useful libraries that a launch might need.

Plan

We plan to delay some parameter settings, (such as versionLocator) and make more features available in KMCCC.Pro

Sample

How to initialize a LauncherCore

LauncherCore 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 Versions

var versions = core.GetVersions();

var version = core.GetVersion("1.8");

unlaunchable Version will be ignored

How to launch Minecraft

var 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 report

Reporter.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!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap