public class ProfileRequest extends Object
Also stores the result of the request.
Modifier and Type | Method and Description |
---|---|
void |
addHandler(ProfileFetchHandler handler)
Add one time result handler.
|
String |
getPlayerName()
Get the name of the player the requested profile belongs to.
|
com.mojang.authlib.GameProfile |
getProfile()
Get the game profile that was requested.
|
ProfileFetchResult |
getResult()
Get the result of the profile fetch.
|
public void addHandler(ProfileFetchHandler handler)
Handler is always invoked from the main thread.
handler
- The result handler.public String getPlayerName()
@Nullable public com.mojang.authlib.GameProfile getProfile()
public ProfileFetchResult getResult()
Copyright © 2019. All rights reserved.