minecraft_utils

Crates.iominecraft_utils
lib.rsminecraft_utils
version0.1.0
sourcesrc
created_at2021-12-26 05:11:57.79818
updated_at2021-12-26 05:11:57.79818
descriptionUtilities for working with minecraft and the mojang api
homepage
repository
max_upload_size
id503198
size36,193
bree (brecert)

documentation

README

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

Commit count: 0

cargo fmt