Skip to content

ModuleLauncher is a Minecraft launch core written by C#

License

Notifications You must be signed in to change notification settings

SinoAHpx/ModuleLauncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Launcher .Net

  • 简体中文文档

  • Module launcher is a Minecraft launch core written in C#

  • Develop environment: Visual Studio 2019 on Windows 10 1809

Introduction

  • This library based on EPL edition ModuleLauncher and remake with C#.

  • Support all version Minecraft launch

  • Offline authenticator and Mojang authenticator

  • Get Assets and Libraries information

  • Auto get Java list

  • More in future

Document

  • Mojang Authenticator
MojangAuthenticator mojangAuthenticator = new MojangAuthenticator
{
	Account = "Email",
	Password = "Password"
};
AuthResult authResult = mojangAuthenticator.Auth();

  • Offline Authenticator
OfflineAuthenticator offlineAuthenticator = new OfflineAuthenticator
{
	Account = "UserName",
};
AuthResult authResult = offlineAuthenticator.Auth();

  • Initialize launch core
Global.LaunchConfiguation = new LaunchConfiguation
{
	JavaSetting = new JavaSetting
    {
     	MaxMemorySize = GB,
        MinMemorySize = GB,
        JavaPath = javaw.exe absolute path
    },
    MinecraftSetting = new MinecraftSetting
    {
    	LauncherName = your launcher name,
        MinecraftSource = .minecraft,
        VersionJson = JsonStorage.ParseVersionJson(FullMinecraftPVersionPath)
    }
};
  • Launch Minecraft
LaunchCore launchCore = new LaunchCore();
launchCore.GenerateLaunchArgs();//Generate launch arguments
launchCore.Launch();

About

ModuleLauncher is a Minecraft launch core written by C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages