Class Session

java.lang.Object
net.minecraft.client.util.Session

@Environment(CLIENT) public class Session extends Object
Mappings:
Namespace Name
official eno
intermediary net/minecraft/class_320
named net/minecraft/client/util/Session
  • Field Details

    • username

      private final String username
      Mappings:
      Namespace Name Mixin selector
      official a Leno;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

      private final String uuid
      Mappings:
      Namespace Name Mixin selector
      official b Leno;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

      private final String accessToken
      Mappings:
      Namespace Name Mixin selector
      official c Leno;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

      private final Optional<String> xuid
      Mappings:
      Namespace Name Mixin selector
      official d Leno;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

      private final Optional<String> clientId
      Mappings:
      Namespace Name Mixin selector
      official e Leno;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

      private final Session.AccountType accountType
      Mappings:
      Namespace Name Mixin selector
      official f Leno;f:Leno$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> Leno;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Leno$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

      public String getSessionId()
      Mappings:
      Namespace Name Mixin selector
      official a Leno;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

      public String getUuid()
      Mappings:
      Namespace Name Mixin selector
      official b Leno;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

      public String getUsername()
      Mappings:
      Namespace Name Mixin selector
      official c Leno;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

      public String getAccessToken()
      Mappings:
      Namespace Name Mixin selector
      official d Leno;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

      public Optional<String> getClientId()
      Mappings:
      Namespace Name Mixin selector
      official e Leno;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

      public Optional<String> getXuid()
      Mappings:
      Namespace Name Mixin selector
      official f Leno;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

      @Nullable public @Nullable UUID getUuidOrNull()
      Returns the UUID, or null if it is invalid.
      Returns:
      the UUID, or null if it is invalid
      Mappings:
      Namespace Name Mixin selector
      official g Leno;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 Leno;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

      public Session.AccountType getAccountType()
      Mappings:
      Namespace Name Mixin selector
      official i Leno;i()Leno$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;