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, SignatureValidator serviceSignatureValidator, 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 SignatureValidator
The field for theserviceSignatureValidator
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, SignatureValidator serviceSignatureValidator, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache) Creates an instance of aServices
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Returns the value of theserviceSignatureValidator
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. -
serviceSignatureValidator
The field for theserviceSignatureValidator
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, SignatureValidator serviceSignatureValidator, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache) Creates an instance of aServices
record class.- Parameters:
sessionService
- the value for thesessionService
record componentserviceSignatureValidator
- the value for theserviceSignatureValidator
record componentprofileRepository
- the value for theprofileRepository
record componentprofileCache
- the value for theprofileCache
record component
-
-
Method Details
-
create
-
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
-
serviceSignatureValidator
Returns the value of theserviceSignatureValidator
record component.- Returns:
- the value of the
serviceSignatureValidator
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
-