Crates.io | minecraft_utils |
lib.rs | minecraft_utils |
version | 0.1.0 |
source | src |
created_at | 2021-12-26 05:11:57.79818 |
updated_at | 2021-12-26 05:11:57.79818 |
description | Utilities for working with minecraft and the mojang api |
homepage | |
repository | |
max_upload_size | |
id | 503198 |
size | 36,193 |
Various utilities for interacting and working with minecraft.
Currently only includes a Mojang api interface.
use minecraft_utils::mojang_api::{ Profile, get_username_uuid };
let uuid = get_username_uuid("brecert").unwrap();
let profile = Profile::fetch(&uuid).unwrap();
assert_eq!(
profile.textures().skin.url,
"http://textures.minecraft.net/texture/b8130282b80cc08872bfc858975350ab3f3fcd4b1d18717bfb5b7b838fce4eaa"
);
There's more examples in examples.
cargo run --example get_info brecert