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

40 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.authlib.minecraft.UserApiService
*/
package net.minecraft.client.multiplayer;
import com.mojang.authlib.minecraft.UserApiService;
import java.nio.file.Path;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import net.minecraft.client.User;
import net.minecraft.client.multiplayer.AccountProfileKeyPairManager;
import net.minecraft.world.entity.player.ProfileKeyPair;
public interface ProfileKeyPairManager {
public static final ProfileKeyPairManager EMPTY_KEY_MANAGER = new ProfileKeyPairManager(){
@Override
public CompletableFuture<Optional<ProfileKeyPair>> prepareKeyPair() {
return CompletableFuture.completedFuture(Optional.empty());
}
@Override
public boolean shouldRefreshKeyPair() {
return false;
}
};
public static ProfileKeyPairManager create(UserApiService userApiService, User user, Path gameDirectory) {
return new AccountProfileKeyPairManager(userApiService, user.getProfileId(), gameDirectory);
}
public CompletableFuture<Optional<ProfileKeyPair>> prepareKeyPair();
public boolean shouldRefreshKeyPair();
}