CMLauncher
Wrapper class of CmlLib.Core. You can easily access many feature of this library through this class.
Basic Usage
Below codes are very basic launcher but all main features are included. Copy and paste to Console project and try it by yourself.
Explaination
Increase the maximum number of concurrent connections. This code would increase download speed.
Create Minecraft directory structure and initialize launcher instance. You can change minecraft path and directory structure. See Minecraft Path
Add event handler. It prints download progress to console. See Event Handling
Get all version and print its names. See VersionLoader
Set launch options, check game files, download game files, and return minecraft Process
instance. See Launch Options for more launch options.
Offline mode
This works only when all game files is normally installed.
In this mode, you can launch game without internet connection. Set FileDownloader
to null
, and set VersionLoader
to LocalVersionLoader
.
Launch without checking / downloading
This works only when all game files is normally installed.
This code launch game super fast. (< 1sec)
API References
Last updated