public class MojangAPI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MojangAPI.MojangServerState |
static class |
MojangAPI.NameData |
Constructor and Description |
---|
MojangAPI() |
Modifier and Type | Method and Description |
---|---|
static ClientSession |
clientLogin(java.lang.String userName,
java.lang.String password) |
static java.util.ArrayList<MojangAPI.NameData> |
getNameHistory(java.util.UUID id) |
static GameProfile |
getProfile(java.lang.String name) |
static GameProfile |
getProfile(java.lang.String name,
long time) |
static java.util.ArrayList<GameProfile> |
getProfiles(java.lang.String... names) |
static GameProfile |
getProfileWithSkin(java.util.UUID id) |
static java.util.HashMap<java.lang.String,MojangAPI.MojangServerState> |
getServerState() |
public static ClientSession clientLogin(java.lang.String userName, java.lang.String password)
userName
- - The username of the Mojang accountpassword
- - The password of the Mojang accountpublic static java.util.ArrayList<MojangAPI.NameData> getNameHistory(java.util.UUID id)
id
- - The online UUID of the playerpublic static GameProfile getProfile(java.lang.String name)
name
- - The username of the playerpublic static GameProfile getProfile(java.lang.String name, long time)
public static GameProfile getProfileWithSkin(java.util.UUID id)
public static java.util.ArrayList<GameProfile> getProfiles(java.lang.String... names)
public static java.util.HashMap<java.lang.String,MojangAPI.MojangServerState> getServerState()