2025-11-24 22:52:51 +03:00

53 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.util.UndashedUuid
*/
package net.minecraft.client;
import com.mojang.util.UndashedUuid;
import java.util.Optional;
import java.util.UUID;
public class User {
private final String name;
private final UUID uuid;
private final String accessToken;
private final Optional<String> xuid;
private final Optional<String> clientId;
public User(String name, UUID uuid, String accessToken, Optional<String> xuid, Optional<String> clientId) {
this.name = name;
this.uuid = uuid;
this.accessToken = accessToken;
this.xuid = xuid;
this.clientId = clientId;
}
public String getSessionId() {
return "token:" + this.accessToken + ":" + UndashedUuid.toString((UUID)this.uuid);
}
public UUID getProfileId() {
return this.uuid;
}
public String getName() {
return this.name;
}
public String getAccessToken() {
return this.accessToken;
}
public Optional<String> getClientId() {
return this.clientId;
}
public Optional<String> getXuid() {
return this.xuid;
}
}