ProfileKeyPairManager .java

net.minecraft.client.multiplayer.ProfileKeyPairManager (interface, 34 lines): members: EMPTY_KEY_MANAGER, shouldRefreshKeyPair, prepareKeyPair, create.

net.minecraft.client.multiplayerinterface34 linesclient1.0 KB

API Surface (2)

CompletableFuture<Optional<ProfileKeyPair>> prepareKeyPair()
boolean shouldRefreshKeyPair()

Fields & Constants (1)

EMPTY_KEY_MANAGER

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ProfileKeyPairManager.java34 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.multiplayer;
2
3
import com.mojang.authlib.minecraft.UserApiService;
4
import java.nio.file.Path;
5
import java.util.Optional;
6
import java.util.concurrent.CompletableFuture;
7
import net.fabricmc.api.EnvType;
8
import net.fabricmc.api.Environment;
9
import net.minecraft.client.User;
10
import net.minecraft.world.entity.player.ProfileKeyPair;
11
12
@Environment(EnvType.CLIENT)
13
public interface ProfileKeyPairManager {
14
	ProfileKeyPairManager EMPTY_KEY_MANAGER = new ProfileKeyPairManager() {
15
		@Override
16
		public CompletableFuture<Optional<ProfileKeyPair>> prepareKeyPair() {
17
			return CompletableFuture.completedFuture(Optional.empty());
18
		}
19
20
		@Override
21
		public boolean shouldRefreshKeyPair() {
22
			return false;
23
		}
24
	};
25
26
	static ProfileKeyPairManager create(final UserApiService userApiService, final User user, final Path gameDirectory) {
27
		return new AccountProfileKeyPairManager(userApiService, user.getProfileId(), gameDirectory);
28
	}
29
30
	CompletableFuture<Optional<ProfileKeyPair>> prepareKeyPair();
31
32
	boolean shouldRefreshKeyPair();
33
}
34

Decompiled Minecraft 26.3 source of ProfileKeyPairManager (net/minecraft/client/multiplayer/ProfileKeyPairManager.java) with Mojang official mappings, stored verbatim on the site.