Class Session

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

@Environment(CLIENT) public class Session extends Object
Mappings:
Namespace Name
official dwc
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 Ldwc;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 Ldwc;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 Ldwc;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;
    • accountType

      private final Session.AccountType accountType
      Mappings:
      Namespace Name Mixin selector
      official d Ldwc;d:Ldwc$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, String accountType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwc;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_320;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/util/Session;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • getSessionId

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

      public com.mojang.authlib.GameProfile getProfile()
      Mappings:
      Namespace Name Mixin selector
      official e Ldwc;e()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 f Ldwc;f()Ldwc$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;