|
1 | | -# rust |
2 | | -The rust version of Minecraft essentials |
| 1 | +<!-- Minecraft-essentials - A Package that gives all Minecraft client essentials. |
| 2 | + * Copyright (C) 2024 minecraft-essentials |
| 3 | + * |
| 4 | + * This program is free software: you can redistribute it and/or modify |
| 5 | + * it under the terms of the GNU General Public License as published by |
| 6 | + * the Free Software Foundation; either version 3 of the License, or |
| 7 | + * (at your option) any later version. |
| 8 | + * |
| 9 | + * This program is distributed in the hope that it will be useful, |
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | + * GNU General Public License for more details. |
| 13 | + * |
| 14 | + * You should have received a copy of the GNU General Public License v3.0 |
| 15 | + * along with this program. |
| 16 | + --> |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +# Minecraft Essentials |
| 23 | + |
| 24 | +A Package that gives all Minecraft client launchers essentials. |
| 25 | + |
| 26 | +## Features |
| 27 | + |
| 28 | +- Essential - functionality for Minecraft Client Launchers |
| 29 | +- Simplifies - Minecraft Client Launcher Building. |
| 30 | +- Fast - proforms better than other frameworks in authentification and launching |
| 31 | +- Safe - Forbids UnSafe code `#![forbid(unsafe_code)]` |
| 32 | +- Beginner Friendly - Full documentation and examples. |
| 33 | + |
| 34 | +## Templates |
| 35 | + |
| 36 | +All templates included in this package are free to use at any time. However, please note that copying the library code is subject to the terms of the GNU General Public License 3.0. For more details, refer to our [License](../LICENSE). |
| 37 | + |
| 38 | +## Notice |
| 39 | + |
| 40 | +**Some packages/libraries had to be split up into separate repositories. The list is provided below.** |
| 41 | + |
| 42 | +- [NPM (Node)](https://github.com/minecraft-essentials/npm) |
| 43 | + |
| 44 | +## Installation |
| 45 | + |
| 46 | +Prerequisites: |
| 47 | +- Rust |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +## Usage: |
| 52 | + |
| 53 | +### Oauth: |
| 54 | +```rust,ignore |
| 55 | +use minecraft_essentials::*; |
| 56 | +let client_id = "111231209837123098712"; |
| 57 | +let oauth = Oauth::new(client_id); |
| 58 | +println!("Login here: {}", oauth.url()); |
| 59 | +let oauth_info = oauth.launch().await?; |
| 60 | +``` |
| 61 | + |
| 62 | +### Device_Code |
| 63 | +```rust,ignore |
| 64 | +use minecraft_essentials::*; |
| 65 | +let client_id = "111231209837123098712"; |
| 66 | +let oauth = Oauth::new(client_id); |
| 67 | +println!("Login here: {}", oauth.url()); |
| 68 | +
|
| 69 | +let oauth_info = oauth.launch().await?; |
| 70 | +``` |
| 71 | + |
| 72 | + |
| 73 | +**More usages comming soon.** |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +## Licencing |
| 79 | + |
| 80 | +This library is licenced under the [GPL-3.0 Licence](./LICENSE) |
| 81 | +For the templates see the [README](./templates/README.md) |
0 commit comments