Minecraft-Essentials
The offical rust/cargo package that provides essential functionality for Minecraft client launchers.
Features
- Essential: Offers core functionality for Minecraft Client Launchers.
- Simplifies: Streamlines the process of building Minecraft Client Launchers.
- Fast: Delivers superior performance in authentication and launching.
- Safe: Ensures safety by forbidding unsafe code.
- Beginner Friendly: Comprehensive documentation and examples/templates available on GitHub.
Package Versions
If your looking to use a package other than rust/cargo you might want to have a look at:
Installation
Add minecraft-essentials to your project:
OR
Add the following to your Cargo.toml:
[]
= "0.2.9"
Usage
Authentifcation
OAuth Custom Authentifcation | OAuth2.0
This example demonstrates how to use the OAuth authentication method provided by minecraft-essentials, oauth feature.
use *;
async
Device Code Custom Authentication | DeviceCode
[!WARNING] This is still work in progress so it may change.
This example demonstrates how to use the Device Code authentication method provided by minecraft-essentials, devicecode feature.
use *;
async
Acutal Minecraft Authentfication
[!CAUTION] This is currently in the roadmap for 0.2.12-14 currently it's not avalible.
Launching
Custom Launching
use Launch;
use Path;
let args = vec!;
let jre_path = new.to_path_buf;
let java_exe = "/your/java/path";
// Init the instance of launch
let launch = new.expect;
// Grab the info to verify that your doing everything currect.
let launch_info = launch.info;
println!;
let _ = launch.launch_jre;
Contributing
Interested in contributing to this project? Check out Contributing.
Licensing
This library is licensed under the BSD 3.0 License.
Credits
- trippleawap for providing a Minecraft Authentication Sample for Minecraft Implementation.