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
Modifier and TypeFieldDescriptionprivate final GameProfileCache
The field for theprofileCache
record component.private final com.mojang.authlib.GameProfileRepository
The field for theprofileRepository
record component.private final com.mojang.authlib.yggdrasil.ServicesKeySet
The field for theservicesKeySet
record component.private final com.mojang.authlib.minecraft.MinecraftSessionService
The field for thesessionService
record component.private static final String
-
Constructor Summary
ConstructorDescriptionServices
(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache) Creates an instance of aServices
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Services
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theprofileCache
record component.com.mojang.authlib.GameProfileRepository
Returns the value of theprofileRepository
record component.com.mojang.authlib.yggdrasil.ServicesKeySet
Returns the value of theservicesKeySet
record component.com.mojang.authlib.minecraft.MinecraftSessionService
Returns the value of thesessionService
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sessionService
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceThe field for thesessionService
record component. -
servicesKeySet
private final com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySetThe field for theservicesKeySet
record component. -
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepositoryThe field for theprofileRepository
record component. -
profileCache
The field for theprofileCache
record 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 aServices
record class.- Parameters:
sessionService
- the value for thesessionService
record componentservicesKeySet
- the value for theservicesKeySet
record componentprofileRepository
- the value for theprofileRepository
record componentprofileCache
- the value for theprofileCache
record 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 thesessionService
record component.- Returns:
- the value of the
sessionService
record component
-
servicesKeySet
public com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet()Returns the value of theservicesKeySet
record component.- Returns:
- the value of the
servicesKeySet
record component
-
profileRepository
public com.mojang.authlib.GameProfileRepository profileRepository()Returns the value of theprofileRepository
record component.- Returns:
- the value of the
profileRepository
record component
-
profileCache
Returns the value of theprofileCache
record component.- Returns:
- the value of the
profileCache
record component
-