Package net.minecraft.server
Record Class Services
java.lang.Object
java.lang.Record
net.minecraft.server.Services
public record Services(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserNameToIdResolverThe field for thenameToIdCacherecord component.private final com.mojang.authlib.GameProfileRepositoryThe field for theprofileRepositoryrecord component.private final ProfileResolverThe 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
ConstructorsConstructorDescriptionServices(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver) Creates an instance of aServicesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Servicescreate(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService pAuthenticationService, File pProfileRepository) 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.@Nullable SignatureValidatorcom.mojang.authlib.GameProfileRepositoryReturns the value of theprofileRepositoryrecord component.Returns the value of theprofileResolverrecord 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.
-
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. -
USERID_CACHE_FILE
- See Also:
-
-
Constructor Details
-
Services
public Services(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver) Creates an instance of aServicesrecord class.- Parameters:
sessionService- the value for thesessionServicerecord componentservicesKeySet- the value for theservicesKeySetrecord componentprofileRepository- the value for theprofileRepositoryrecord componentnameToIdCache- the value for thenameToIdCacherecord componentprofileResolver- the value for theprofileResolverrecord component
-
-
Method Details
-
create
-
profileKeySignatureValidator
-
canValidateProfileKeys
public boolean canValidateProfileKeys() -
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
-