An OpenSource Minecraft Launcher for .Net Developers
Shared Code Between KMCCC.Basic & KMCCC.Pro
- 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
Basic Version of KMCCC
- Everything in kMCCC.Shared
- No more
Professional Version of KMCCC
- Everything in KMCCC.Shared
- [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.
We plan to delay some parameter settings, (such as versionLocator) and make more features available in KMCCC.Pro
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()
));
var versions = core.GetVersions();
var version = core.GetVersion("1.8");
unlaunchable Version will be ignored
var result = App.LauncherCore.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