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, GameProfileCache profileCache)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GameProfileCacheThe field for theprofileCacherecord component.private 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 String -
Constructor Summary
ConstructorsConstructorDescriptionServices(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache) Creates an instance of aServicesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Servicesfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprofileCacherecord component.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.
-
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. -
profileCache
The field for theprofileCacherecord 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, GameProfileCache profileCache) Creates an instance of aServicesrecord class.- Parameters:
sessionService- the value for thesessionServicerecord componentservicesKeySet- the value for theservicesKeySetrecord componentprofileRepository- the value for theprofileRepositoryrecord componentprofileCache- the value for theprofileCacherecord 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
-
profileCache
Returns the value of theprofileCacherecord component.- Returns:
- the value of the
profileCacherecord component
-