Package net.minecraft.client.util
Class Session
java.lang.Object
net.minecraft.client.util.Session
- Mappings:
Namespace Name official emw
intermediary net/minecraft/class_320
named net/minecraft/client/util/Session
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final Session.AccountType
private final String
private final String
-
Constructor Summary
-
Method Summary
-
Field Details
-
username
- Mappings:
Namespace Name Mixin selector official a
Lemw;a:Ljava/lang/String;
intermediary field_1982
Lnet/minecraft/class_320;field_1982:Ljava/lang/String;
named username
Lnet/minecraft/client/util/Session;username:Ljava/lang/String;
-
uuid
- Mappings:
Namespace Name Mixin selector official b
Lemw;b:Ljava/lang/String;
intermediary field_1985
Lnet/minecraft/class_320;field_1985:Ljava/lang/String;
named uuid
Lnet/minecraft/client/util/Session;uuid:Ljava/lang/String;
-
accessToken
- Mappings:
Namespace Name Mixin selector official c
Lemw;c:Ljava/lang/String;
intermediary field_1983
Lnet/minecraft/class_320;field_1983:Ljava/lang/String;
named accessToken
Lnet/minecraft/client/util/Session;accessToken:Ljava/lang/String;
-
xuid
- Mappings:
Namespace Name Mixin selector official d
Lemw;d:Ljava/util/Optional;
intermediary field_34960
Lnet/minecraft/class_320;field_34960:Ljava/util/Optional;
named xuid
Lnet/minecraft/client/util/Session;xuid:Ljava/util/Optional;
-
clientId
- Mappings:
Namespace Name Mixin selector official e
Lemw;e:Ljava/util/Optional;
intermediary field_34961
Lnet/minecraft/class_320;field_34961:Ljava/util/Optional;
named clientId
Lnet/minecraft/client/util/Session;clientId:Ljava/util/Optional;
-
accountType
- Mappings:
Namespace Name Mixin selector official f
Lemw;f:Lemw$a;
intermediary field_1984
Lnet/minecraft/class_320;field_1984:Lnet/minecraft/class_320$class_321;
named accountType
Lnet/minecraft/client/util/Session;accountType:Lnet/minecraft/client/util/Session$AccountType;
-
-
Constructor Details
-
Session
public Session(String username, String uuid, String accessToken, Optional<String> xuid, Optional<String> clientId, Session.AccountType accountType) - Mappings:
Namespace Name Mixin selector official <init>
Lemw;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lemw$a;)V
intermediary <init>
Lnet/minecraft/class_320;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_320$class_321;)V
named <init>
Lnet/minecraft/client/util/Session;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/client/util/Session$AccountType;)V
-
-
Method Details
-
getSessionId
- Mappings:
Namespace Name Mixin selector official a
Lemw;a()Ljava/lang/String;
intermediary method_1675
Lnet/minecraft/class_320;method_1675()Ljava/lang/String;
named getSessionId
Lnet/minecraft/client/util/Session;getSessionId()Ljava/lang/String;
-
getUuid
- Mappings:
Namespace Name Mixin selector official b
Lemw;b()Ljava/lang/String;
intermediary method_1673
Lnet/minecraft/class_320;method_1673()Ljava/lang/String;
named getUuid
Lnet/minecraft/client/util/Session;getUuid()Ljava/lang/String;
-
getUsername
- Mappings:
Namespace Name Mixin selector official c
Lemw;c()Ljava/lang/String;
intermediary method_1676
Lnet/minecraft/class_320;method_1676()Ljava/lang/String;
named getUsername
Lnet/minecraft/client/util/Session;getUsername()Ljava/lang/String;
-
getAccessToken
- Mappings:
Namespace Name Mixin selector official d
Lemw;d()Ljava/lang/String;
intermediary method_1674
Lnet/minecraft/class_320;method_1674()Ljava/lang/String;
named getAccessToken
Lnet/minecraft/client/util/Session;getAccessToken()Ljava/lang/String;
-
getClientId
- Mappings:
Namespace Name Mixin selector official e
Lemw;e()Ljava/util/Optional;
intermediary method_38740
Lnet/minecraft/class_320;method_38740()Ljava/util/Optional;
named getClientId
Lnet/minecraft/client/util/Session;getClientId()Ljava/util/Optional;
-
getXuid
- Mappings:
Namespace Name Mixin selector official f
Lemw;f()Ljava/util/Optional;
intermediary method_38741
Lnet/minecraft/class_320;method_38741()Ljava/util/Optional;
named getXuid
Lnet/minecraft/client/util/Session;getXuid()Ljava/util/Optional;
-
getUuidOrNull
Returns the UUID, ornull
if it is invalid.- Returns:
- the UUID, or
null
if it is invalid - Mappings:
Namespace Name Mixin selector official g
Lemw;g()Ljava/util/UUID;
intermediary method_44717
Lnet/minecraft/class_320;method_44717()Ljava/util/UUID;
named getUuidOrNull
Lnet/minecraft/client/util/Session;getUuidOrNull()Ljava/util/UUID;
-
getProfile
public com.mojang.authlib.GameProfile getProfile()- Mappings:
Namespace Name Mixin selector official h
Lemw;h()Lcom/mojang/authlib/GameProfile;
intermediary method_1677
Lnet/minecraft/class_320;method_1677()Lcom/mojang/authlib/GameProfile;
named getProfile
Lnet/minecraft/client/util/Session;getProfile()Lcom/mojang/authlib/GameProfile;
-
getAccountType
- Mappings:
Namespace Name Mixin selector official i
Lemw;i()Lemw$a;
intermediary method_35718
Lnet/minecraft/class_320;method_35718()Lnet/minecraft/class_320$class_321;
named getAccountType
Lnet/minecraft/client/util/Session;getAccountType()Lnet/minecraft/client/util/Session$AccountType;
-