Class Session

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

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

    • username

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

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

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

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

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

      private final Session.AccountType accountType
      Mappings:
      Namespace Name Mixin selector
      named accountType Lnet/minecraft/client/session/Session;accountType:Lnet/minecraft/client/session/Session$AccountType;
      intermediary field_1984 Lnet/minecraft/class_320;field_1984:Lnet/minecraft/class_320$class_321;
      official f Lfhb;f:Lfhb$a;
  • 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
      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
      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
      official <init> Lfhb;<init>(Ljava/lang/String;Ljava/util/UUID;Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Lfhb$a;)V
  • Method Details

    • getSessionId

      public String getSessionId()
      Mappings:
      Namespace Name Mixin selector
      named getSessionId Lnet/minecraft/client/session/Session;getSessionId()Ljava/lang/String;
      intermediary method_1675 Lnet/minecraft/class_320;method_1675()Ljava/lang/String;
      official a Lfhb;a()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
      named getUuidOrNull Lnet/minecraft/client/session/Session;getUuidOrNull()Ljava/util/UUID;
      intermediary method_44717 Lnet/minecraft/class_320;method_44717()Ljava/util/UUID;
      official b Lfhb;b()Ljava/util/UUID;
    • getUsername

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

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

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

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

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