Record Class Services
java.lang.Object
java.lang.Record
net.minecraft.server.Services
public record Services(MinecraftSessionService sessionService, ServicesKeySet servicesKeySet, GameProfileRepository profileRepository, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserNameToIdResolverThe field for thenameToIdCacherecord component.private final GameProfileRepositoryThe field for theprofileRepositoryrecord component.private final ProfileResolverThe field for theprofileResolverrecord component.private final ServicesKeySetThe field for theservicesKeySetrecord component.private final MinecraftSessionServiceThe field for thesessionServicerecord component.private static final String -
Constructor Summary
ConstructorsConstructorDescriptionServices(MinecraftSessionService sessionService, ServicesKeySet servicesKeySet, GameProfileRepository profileRepository, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver) Creates an instance of aServicesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Servicescreate(YggdrasilAuthenticationService serviceAccess, File nameCacheDir) 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 SignatureValidatorReturns the value of theprofileRepositoryrecord component.Returns the value of theprofileResolverrecord component.Returns the value of theservicesKeySetrecord component.Returns the value of thesessionServicerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sessionService
The field for thesessionServicerecord component. -
servicesKeySet
The field for theservicesKeySetrecord component. -
profileRepository
The 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(MinecraftSessionService sessionService, ServicesKeySet servicesKeySet, 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
-
hashCode
-
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
Returns the value of thesessionServicerecord component.- Returns:
- the value of the
sessionServicerecord component
-
servicesKeySet
Returns the value of theservicesKeySetrecord component.- Returns:
- the value of the
servicesKeySetrecord component
-
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
-