Package net.minecraft.util
Class Session
- java.lang.Object
-
- net.minecraft.util.Session
-
public class Session extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Session.Type
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
accessToken
private java.lang.String
name
private com.mojang.authlib.properties.PropertyMap
properties
Forge: Cache of the local session's GameProfile properties.private Session.Type
type
private java.lang.String
uuid
-
Constructor Summary
Constructors Constructor Description Session(java.lang.String p_i1098_1_, java.lang.String p_i1098_2_, java.lang.String p_i1098_3_, java.lang.String p_i1098_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessToken()
com.mojang.authlib.GameProfile
getGameProfile()
java.lang.String
getName()
java.lang.String
getSessionId()
java.lang.String
getUuid()
boolean
hasCachedProperties()
void
setProperties(com.mojang.authlib.properties.PropertyMap properties)
-
-
-
Field Detail
-
name
private final java.lang.String name
-
uuid
private final java.lang.String uuid
-
accessToken
private final java.lang.String accessToken
-
type
private final Session.Type type
-
properties
private com.mojang.authlib.properties.PropertyMap properties
Forge: Cache of the local session's GameProfile properties.
-
-
Method Detail
-
getSessionId
public java.lang.String getSessionId()
-
getUuid
public java.lang.String getUuid()
-
getName
public java.lang.String getName()
-
getAccessToken
public java.lang.String getAccessToken()
-
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile()
-
setProperties
public void setProperties(com.mojang.authlib.properties.PropertyMap properties)
-
hasCachedProperties
public boolean hasCachedProperties()
-
-