Uses of Record Class
net.minecraft.network.encryption.PlayerKeyPair
Package
Description
-
Uses of PlayerKeyPair in net.minecraft.client.network
Modifier and TypeFieldDescriptionprivate @Nullable CompletableFuture
<Optional<PlayerKeyPair>> ClientPlayNetworkHandler.profileKeyPairFuture
Modifier and TypeMethodDescriptionprivate void
ClientPlayNetworkHandler.updateKeyPair
(PlayerKeyPair keyPair) -
Uses of PlayerKeyPair in net.minecraft.client.session
Modifier and TypeFieldDescriptionprivate CompletableFuture
<Optional<PlayerKeyPair>> ProfileKeysImpl.keyFuture
Modifier and TypeMethodDescriptionprivate @Nullable PlayerKeyPair
ProfileKeysImpl.fetchKeyPair
(com.mojang.authlib.minecraft.UserApiService userApiService) Returns the key pair fetched from Mojang's server.Modifier and TypeMethodDescriptionProfileKeys.fetchKeyPair()
ProfileKeysImpl.fetchKeyPair()
private CompletableFuture
<Optional<PlayerKeyPair>> ProfileKeysImpl.getKeyPair
(Optional<PlayerKeyPair> currentKey) Gets the key pair from the file cache, or if it is unavailable or expired, the Mojang server.private Optional
<PlayerKeyPair> ProfileKeysImpl.loadKeyPairFromFile()
Returns the profile keys from the local cache.Modifier and TypeMethodDescriptionprivate void
ProfileKeysImpl.saveKeyPairToFile
(@Nullable PlayerKeyPair keyPair) Saves thekeyPair
to the cache file ifSharedConstants.isDevelopment
istrue
; otherwise, just deletes the cache file.Modifier and TypeMethodDescriptionprivate CompletableFuture
<Optional<PlayerKeyPair>> ProfileKeysImpl.getKeyPair
(Optional<PlayerKeyPair> currentKey) Gets the key pair from the file cache, or if it is unavailable or expired, the Mojang server. -
Uses of PlayerKeyPair in net.minecraft.network.encryption
Modifier and TypeFieldDescriptionprivate final PlayerKeyPair
ClientPlayerSession.keyPair
The field for thekeyPair
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<PlayerKeyPair> PlayerKeyPair.CODEC
Modifier and TypeMethodDescriptionClientPlayerSession.keyPair()
Returns the value of thekeyPair
record component.Modifier and TypeMethodDescriptionstatic ClientPlayerSession
ClientPlayerSession.create
(PlayerKeyPair keyPair)