Package net.minecraft.util
Record Class ApiServices
java.lang.Object
java.lang.Record
net.minecraft.util.ApiServices
- Record Components:
- sessionService-
- servicesKeySet-
- profileRepository-
- userCache-
public record ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, UserCache userCache)
extends Record
A record holding session services used by the server.
- API Note:
- Individual services can be accessed using the getters in
 MinecraftServer.
- Mappings:
- Namespace - Name - official - adh- intermediary - net/minecraft/class_7497- named - net/minecraft/util/ApiServices- official - a- intermediary - comp_837- named - sessionService- official - b- intermediary - comp_838- named - servicesKeySet- official - c- intermediary - comp_839- named - profileRepository- official - d- intermediary - comp_840- named - userCache
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfileRepositoryThe field for theprofileRepositoryrecord component.private final com.mojang.authlib.yggdrasil.ServicesKeySetThe field for theservicesKeySetrecord component.private final com.mojang.authlib.minecraft.MinecraftSessionServiceThe field for thesessionServicerecord component.private static final Stringprivate final UserCacheThe field for theuserCacherecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionApiServices(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ApiServicescreate(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authenticationService, File rootDirectory) Returns a new API service instance.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.authlib.GameProfileRepositoryReturns the value of theprofileRepositoryrecord component.com.mojang.authlib.yggdrasil.ServicesKeySetReturns the value of theservicesKeySetrecord component.com.mojang.authlib.minecraft.MinecraftSessionServiceReturns the value of thesessionServicerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserCacherecord component.
- 
Field Details- 
sessionServiceprivate final com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceThe field for thesessionServicerecord component.
- 
servicesKeySetprivate final com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySetThe field for theservicesKeySetrecord component.
- 
profileRepositoryprivate final com.mojang.authlib.GameProfileRepository profileRepositoryThe field for theprofileRepositoryrecord component.
- 
userCacheThe field for theuserCacherecord component.
- 
USER_CACHE_FILE_NAME- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Ladh;e:Ljava/lang/String;- intermediary - field_39392- Lnet/minecraft/class_7497;field_39392:Ljava/lang/String;- named - USER_CACHE_FILE_NAME- Lnet/minecraft/util/ApiServices;USER_CACHE_FILE_NAME:Ljava/lang/String;
 
 
- 
- 
Constructor Details- 
ApiServicespublic ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache) 
 
- 
- 
Method Details- 
createpublic static ApiServices create(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authenticationService, File rootDirectory) Returns a new API service instance.This is usually not needed; call getters on MinecraftServerinstead.- Returns:
- a new API service instance
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ladh;a(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Ladh;- intermediary - method_44143- Lnet/minecraft/class_7497;method_44143(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/class_7497;- named - create- Lnet/minecraft/util/ApiServices;create(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/util/ApiServices;
 
- 
serviceSignatureVerifier- Mappings:
- Namespace - Name - Mixin selector - official - a- Ladh;a()Lapj;- intermediary - method_51467- Lnet/minecraft/class_7497;method_51467()Lnet/minecraft/class_7500;- named - serviceSignatureVerifier- Lnet/minecraft/util/ApiServices;serviceSignatureVerifier()Lnet/minecraft/network/encryption/SignatureVerifier;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
sessionServicepublic com.mojang.authlib.minecraft.MinecraftSessionService sessionService()Returns the value of thesessionServicerecord component.- Returns:
- the value of the sessionServicerecord component
 
- 
servicesKeySetpublic com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet()Returns the value of theservicesKeySetrecord component.- Returns:
- the value of the servicesKeySetrecord component
 
- 
profileRepositorypublic com.mojang.authlib.GameProfileRepository profileRepository()Returns the value of theprofileRepositoryrecord component.- Returns:
- the value of the profileRepositoryrecord component
 
- 
userCacheReturns the value of theuserCacherecord component.- Returns:
- the value of the userCacherecord component
 
 
-