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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionServices(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 SummaryModifier and TypeMethodDescriptionstatic 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- 
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.
- 
profileCacheThe field for theprofileCacherecord component.
- 
USERID_CACHE_FILE- See Also:
 
 
- 
- 
Constructor Details- 
Servicespublic 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 the- sessionServicerecord component
- servicesKeySet- the value for the- servicesKeySetrecord component
- profileRepository- the value for the- profileRepositoryrecord component
- profileCache- the value for the- profileCacherecord component
 
 
- 
- 
Method Details- 
create
- 
profileKeySignatureValidator
- 
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
 
- 
profileCacheReturns the value of theprofileCacherecord component.- Returns:
- the value of the profileCacherecord component
 
 
-