Package net.minecraft.util
Record Class ApiServices
java.lang.Object
java.lang.Record
net.minecraft.util.ApiServices
- Record Components:
sessionService-servicesKeySet-profileRepository-nameToIdCache-profileResolver-
public record ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, NameToIdCache nameToIdCache, GameProfileResolver profileResolver)
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 named net/minecraft/util/ApiServicesintermediary net/minecraft/class_7497official anenamed sessionServiceintermediary comp_837official anamed servicesKeySetintermediary comp_838official bnamed profileRepositoryintermediary comp_839official cnamed nameToIdCacheintermediary comp_4407official dnamed profileResolverintermediary comp_4624official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NameToIdCacheThe field for thenameToIdCacherecord component.private final com.mojang.authlib.GameProfileRepositoryThe field for theprofileRepositoryrecord component.private final GameProfileResolverThe field for theprofileResolverrecord 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 String -
Constructor Summary
ConstructorsConstructorDescriptionApiServices(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository gameProfileRepository, NameToIdCache nameToIdCache, GameProfileResolver gameProfileResolver) -
Method Summary
Modifier 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.Returns the value of thenameToIdCacherecord component.com.mojang.authlib.GameProfileRepositoryReturns the value of theprofileRepositoryrecord component.Returns the value of theprofileResolverrecord component.booleancom.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.
-
Field Details
-
sessionService
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceThe field for thesessionServicerecord component. -
servicesKeySet
private final com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySetThe field for theservicesKeySetrecord component. -
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepositoryThe field for theprofileRepositoryrecord component. -
nameToIdCache
The field for thenameToIdCacherecord component. -
profileResolver
The field for theprofileResolverrecord component. -
USER_CACHE_FILE_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named USER_CACHE_FILE_NAMELnet/minecraft/util/ApiServices;USER_CACHE_FILE_NAME:Ljava/lang/String;intermediary field_39392Lnet/minecraft/class_7497;field_39392:Ljava/lang/String;official fLane;f:Ljava/lang/String;
-
-
Constructor Details
-
ApiServices
public ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository gameProfileRepository, NameToIdCache nameToIdCache, GameProfileResolver gameProfileResolver)
-
-
Method Details
-
create
public 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 named createLnet/minecraft/util/ApiServices;create(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/util/ApiServices;intermediary method_44143Lnet/minecraft/class_7497;method_44143(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/class_7497;official aLane;a(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lane;
-
serviceSignatureVerifier
- Mappings:
Namespace Name Mixin selector named serviceSignatureVerifierLnet/minecraft/util/ApiServices;serviceSignatureVerifier()Lnet/minecraft/network/encryption/SignatureVerifier;intermediary method_51467Lnet/minecraft/class_7497;method_51467()Lnet/minecraft/class_7500;official aLane;a()Lbfw;
-
providesProfileKeys
public boolean providesProfileKeys()- Mappings:
Namespace Name Mixin selector named providesProfileKeysLnet/minecraft/util/ApiServices;providesProfileKeys()Zintermediary method_55595Lnet/minecraft/class_7497;method_55595()Zofficial bLane;b()Z
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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). -
sessionService
public com.mojang.authlib.minecraft.MinecraftSessionService sessionService()Returns the value of thesessionServicerecord component.- Returns:
- the value of the
sessionServicerecord component
-
servicesKeySet
public com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet()Returns the value of theservicesKeySetrecord component.- Returns:
- the value of the
servicesKeySetrecord component
-
profileRepository
public com.mojang.authlib.GameProfileRepository profileRepository()Returns the value of theprofileRepositoryrecord component.- Returns:
- the value of the
profileRepositoryrecord component
-
nameToIdCache
Returns the value of thenameToIdCacherecord component.- Returns:
- the value of the
nameToIdCacherecord component
-
profileResolver
Returns the value of theprofileResolverrecord component.- Returns:
- the value of the
profileResolverrecord component
-