Skip to content
yushijinhun edited this page Jun 28, 2016 · 4 revisions

This page is not up to date.

Sometimes you may want to display the player's skin in the launcher. jmccc-yggdrasil-authenticator can do this.

  1. Creates a ProfileService

    ProfileService profileService = YggdrasilServiceBuilder.defaultProfileService();
  2. Fetches the player's profile by uuid

    GameProfile profile = profileService.getGameProfile(uuid);
  3. Gets the player's textures

    PlayerTextures textures = profileService.getTextures(profile);
    

If you don't have the player's uuid, you can invoke ProfileService.lookupUUIDByName(String) to query.