Package net.minecraft.util
Record Class ApiServices
java.lang.Object
java.lang.Record
net.minecraft.util.ApiServices
- Record Components:
sessionService
-serviceSignatureVerifier
-profileRepository
-userCache
-
public record ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, SignatureVerifier serviceSignatureVerifier, com.mojang.authlib.GameProfileRepository profileRepository, UserCache userCache)
extends Record
A record holding session services used by the server.
- API Note:
- Individual services can be accessed using the getters in
MinecraftServer
. - Mappings:
Namespace Name official adu
intermediary net/minecraft/class_7497
named net/minecraft/util/ApiServices
official a
intermediary comp_837
named sessionService
official b
intermediary comp_838
named serviceSignatureVerifier
official c
intermediary comp_839
named profileRepository
official d
intermediary comp_840
named userCache
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfileRepository
The field for theprofileRepository
record component.private final SignatureVerifier
The field for theserviceSignatureVerifier
record component.private final com.mojang.authlib.minecraft.MinecraftSessionService
The field for thesessionService
record component.private static final String
private final UserCache
The field for theuserCache
record component. -
Constructor Summary
ConstructorDescriptionApiServices
(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, SignatureVerifier signatureVerifier, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache) -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiServices
create
(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authenticationService, File rootDirectory) Returns a new API service instance.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.mojang.authlib.GameProfileRepository
Returns the value of theprofileRepository
record component.Returns the value of theserviceSignatureVerifier
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.Returns the value of theuserCache
record component.
-
Field Details
-
sessionService
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionServiceThe field for thesessionService
record component. -
serviceSignatureVerifier
The field for theserviceSignatureVerifier
record component. -
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepositoryThe field for theprofileRepository
record component. -
userCache
The field for theuserCache
record component. -
USER_CACHE_FILE_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ladu;e:Ljava/lang/String;
intermediary field_39392
Lnet/minecraft/class_7497;field_39392:Ljava/lang/String;
named USER_CACHE_FILE_NAME
Lnet/minecraft/util/ApiServices;USER_CACHE_FILE_NAME:Ljava/lang/String;
-
-
Constructor Details
-
ApiServices
public ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, SignatureVerifier signatureVerifier, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache)
-
-
Method Details
-
create
public static ApiServices create(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authenticationService, File rootDirectory) Returns a new API service instance.This is usually not needed; call getters on
MinecraftServer
instead.- Returns:
- a new API service instance
- Mappings:
Namespace Name Mixin selector official a
Ladu;a(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Ladu;
intermediary method_44143
Lnet/minecraft/class_7497;method_44143(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/class_7497;
named create
Lnet/minecraft/util/ApiServices;create(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/util/ApiServices;
-
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
-
serviceSignatureVerifier
Returns the value of theserviceSignatureVerifier
record component.- Returns:
- the value of the
serviceSignatureVerifier
record component
-
profileRepository
public com.mojang.authlib.GameProfileRepository profileRepository()Returns the value of theprofileRepository
record component.- Returns:
- the value of the
profileRepository
record component
-
userCache
Returns the value of theuserCache
record component.- Returns:
- the value of the
userCache
record component
-