#minecraft #mojang #api #profile

minecraft_utils

Utilities for working with minecraft and the mojang api

1 unstable release

0.1.0 Dec 26, 2021

#6 in #mojang

MIT license

24KB
370 lines

minecraft_utils

Various utilities for interacting and working with minecraft.

Currently only includes a Mojang api interface.

Examples

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

Dependencies

~1.5–2.6MB
~54K SLoC