public class Session
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Session.Type |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
playerID |
private com.mojang.authlib.properties.PropertyMap |
properties
Forge: Cache of the local session's GameProfile properties.
|
private Session.Type |
sessionType |
private java.lang.String |
token |
private java.lang.String |
username |
Constructor and Description |
---|
Session(java.lang.String usernameIn,
java.lang.String playerIDIn,
java.lang.String tokenIn,
java.lang.String sessionTypeIn) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPlayerID() |
com.mojang.authlib.GameProfile |
getProfile() |
java.lang.String |
getSessionID() |
java.lang.String |
getToken() |
java.lang.String |
getUsername() |
boolean |
hasCachedProperties() |
void |
setProperties(com.mojang.authlib.properties.PropertyMap properties) |
private final java.lang.String username
private final java.lang.String playerID
private final java.lang.String token
private final Session.Type sessionType
private com.mojang.authlib.properties.PropertyMap properties
public Session(java.lang.String usernameIn, java.lang.String playerIDIn, java.lang.String tokenIn, java.lang.String sessionTypeIn)
public java.lang.String getSessionID()
public java.lang.String getPlayerID()
public java.lang.String getUsername()
public java.lang.String getToken()
public com.mojang.authlib.GameProfile getProfile()
public void setProperties(com.mojang.authlib.properties.PropertyMap properties)
public boolean hasCachedProperties()