Class Session

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

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

    • username

      private final String username
      Mappings:
      Namespace Name Mixin selector
      official a Lerk;a:Ljava/lang/String;
      intermediary field_1982 Lnet/minecraft/class_320;field_1982:Ljava/lang/String;
      named username Lnet/minecraft/client/session/Session;username:Ljava/lang/String;
    • uuid

      private final UUID uuid
      Mappings:
      Namespace Name Mixin selector
      official b Lerk;b:Ljava/util/UUID;
      intermediary field_1985 Lnet/minecraft/class_320;field_1985:Ljava/util/UUID;
      named uuid Lnet/minecraft/client/session/Session;uuid:Ljava/util/UUID;
    • accessToken

      private final String accessToken
      Mappings:
      Namespace Name Mixin selector
      official c Lerk;c:Ljava/lang/String;
      intermediary field_1983 Lnet/minecraft/class_320;field_1983:Ljava/lang/String;
      named accessToken Lnet/minecraft/client/session/Session;accessToken:Ljava/lang/String;
    • xuid

      private final Optional<String> xuid
      Mappings:
      Namespace Name Mixin selector
      official d Lerk;d:Ljava/util/Optional;
      intermediary field_34960 Lnet/minecraft/class_320;field_34960:Ljava/util/Optional;
      named xuid Lnet/minecraft/client/session/Session;xuid:Ljava/util/Optional;
    • clientId

      private final Optional<String> clientId
      Mappings:
      Namespace Name Mixin selector
      official e Lerk;e:Ljava/util/Optional;
      intermediary field_34961 Lnet/minecraft/class_320;field_34961:Ljava/util/Optional;
      named clientId Lnet/minecraft/client/session/Session;clientId:Ljava/util/Optional;
    • accountType

      private final Session.AccountType accountType
      Mappings:
      Namespace Name Mixin selector
      official f Lerk;f:Lerk$a;
      intermediary field_1984 Lnet/minecraft/class_320;field_1984:Lnet/minecraft/class_320$class_321;
      named accountType Lnet/minecraft/client/session/Session;accountType:Lnet/minecraft/client/session/Session$AccountType;
  • Constructor Details

    • Session

      public Session(String username, UUID uuid, String accessToken, Optional<String> xuid, Optional<String> clientId, Session.AccountType accountType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lerk;<init>(Ljava/lang/String;Ljava/util/UUID;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lerk$a;)V
      intermediary <init> Lnet/minecraft/class_320;<init>(Ljava/lang/String;Ljava/util/UUID;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_320$class_321;)V
      named <init> Lnet/minecraft/client/session/Session;<init>(Ljava/lang/String;Ljava/util/UUID;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/client/session/Session$AccountType;)V
  • Method Details

    • getSessionId

      public String getSessionId()
      Mappings:
      Namespace Name Mixin selector
      official a Lerk;a()Ljava/lang/String;
      intermediary method_1675 Lnet/minecraft/class_320;method_1675()Ljava/lang/String;
      named getSessionId Lnet/minecraft/client/session/Session;getSessionId()Ljava/lang/String;
    • getUuidOrNull

      public 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 b Lerk;b()Ljava/util/UUID;
      intermediary method_44717 Lnet/minecraft/class_320;method_44717()Ljava/util/UUID;
      named getUuidOrNull Lnet/minecraft/client/session/Session;getUuidOrNull()Ljava/util/UUID;
    • getUsername

      public String getUsername()
      Mappings:
      Namespace Name Mixin selector
      official c Lerk;c()Ljava/lang/String;
      intermediary method_1676 Lnet/minecraft/class_320;method_1676()Ljava/lang/String;
      named getUsername Lnet/minecraft/client/session/Session;getUsername()Ljava/lang/String;
    • getAccessToken

      public String getAccessToken()
      Mappings:
      Namespace Name Mixin selector
      official d Lerk;d()Ljava/lang/String;
      intermediary method_1674 Lnet/minecraft/class_320;method_1674()Ljava/lang/String;
      named getAccessToken Lnet/minecraft/client/session/Session;getAccessToken()Ljava/lang/String;
    • getClientId

      public Optional<String> getClientId()
      Mappings:
      Namespace Name Mixin selector
      official e Lerk;e()Ljava/util/Optional;
      intermediary method_38740 Lnet/minecraft/class_320;method_38740()Ljava/util/Optional;
      named getClientId Lnet/minecraft/client/session/Session;getClientId()Ljava/util/Optional;
    • getXuid

      public Optional<String> getXuid()
      Mappings:
      Namespace Name Mixin selector
      official f Lerk;f()Ljava/util/Optional;
      intermediary method_38741 Lnet/minecraft/class_320;method_38741()Ljava/util/Optional;
      named getXuid Lnet/minecraft/client/session/Session;getXuid()Ljava/util/Optional;
    • getAccountType

      public Session.AccountType getAccountType()
      Mappings:
      Namespace Name Mixin selector
      official g Lerk;g()Lerk$a;
      intermediary method_35718 Lnet/minecraft/class_320;method_35718()Lnet/minecraft/class_320$class_321;
      named getAccountType Lnet/minecraft/client/session/Session;getAccountType()Lnet/minecraft/client/session/Session$AccountType;