This package has been deprecated

Author message:

Use @xmcl/core

@xmcl/profile-service

1.0.3 • Public • Published

Profile-service Module

npm version npm Build Status

This is a sub-module belong to minecraft-launcher-core module. You can still use this individually.

Usage

Game Profile

Or lookup profile by name:

    const username: string;
    const gameProfilePromise: Promise<GameProfile> = ProfileService.lookup(username);

Fetch the user game profile by uuid. (This could also be used for get skin)

    import { ProfileService, GameProfile } from "@xmcl/profile-service"
    const userUUID: string;
    const gameProfilePromise: GameProfile = await ProfileService.fetch(userUUID);

Get player texture:

    const gameProfilePromise: GameProfile;
    const texturesPromise: Promise<GameProfile.Textures> = ProfileService.fetchProfileTexture(gameProfilePromise);

Package Sidebar

Install

npm i @xmcl/profile-service

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

51.6 kB

Total Files

13

Last publish

Collaborators

  • ci010