Record Class ApiServices

java.lang.Object
java.lang.Record
net.minecraft.util.ApiServices
Record Components:
sessionService -
servicesKeySet -
profileRepository -
userCache -

public record ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, 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
named net/minecraft/util/ApiServices
intermediary net/minecraft/class_7497
official alm
named sessionService
intermediary comp_837
official a
named servicesKeySet
intermediary comp_838
official b
named profileRepository
intermediary comp_839
official c
named userCache
intermediary comp_840
official d
  • Field Details

    • sessionService

      private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
      The field for the sessionService record component.
    • servicesKeySet

      private final com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet
      The field for the servicesKeySet record component.
    • profileRepository

      private final com.mojang.authlib.GameProfileRepository profileRepository
      The field for the profileRepository record component.
    • userCache

      private final UserCache userCache
      The field for the userCache record component.
    • USER_CACHE_FILE_NAME

      private static final String USER_CACHE_FILE_NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named USER_CACHE_FILE_NAME Lnet/minecraft/util/ApiServices;USER_CACHE_FILE_NAME:Ljava/lang/String;
      intermediary field_39392 Lnet/minecraft/class_7497;field_39392:Ljava/lang/String;
      official e Lalm;e:Ljava/lang/String;
  • Constructor Details

    • ApiServices

      public ApiServices(com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, 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
      named create Lnet/minecraft/util/ApiServices;create(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/util/ApiServices;
      intermediary method_44143 Lnet/minecraft/class_7497;method_44143(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lnet/minecraft/class_7497;
      official a Lalm;a(Lcom/mojang/authlib/yggdrasil/YggdrasilAuthenticationService;Ljava/io/File;)Lalm;
    • serviceSignatureVerifier

      @Nullable public @Nullable SignatureVerifier serviceSignatureVerifier()
      Mappings:
      Namespace Name Mixin selector
      named serviceSignatureVerifier Lnet/minecraft/util/ApiServices;serviceSignatureVerifier()Lnet/minecraft/network/encryption/SignatureVerifier;
      intermediary method_51467 Lnet/minecraft/class_7497;method_51467()Lnet/minecraft/class_7500;
      official a Lalm;a()Lazb;
    • providesProfileKeys

      public boolean providesProfileKeys()
      Mappings:
      Namespace Name Mixin selector
      named providesProfileKeys Lnet/minecraft/util/ApiServices;providesProfileKeys()Z
      intermediary method_55595 Lnet/minecraft/class_7497;method_55595()Z
      official b Lalm;b()Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sessionService

      public com.mojang.authlib.minecraft.MinecraftSessionService sessionService()
      Returns the value of the sessionService record component.
      Returns:
      the value of the sessionService record component
    • servicesKeySet

      public com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet()
      Returns the value of the servicesKeySet record component.
      Returns:
      the value of the servicesKeySet record component
    • profileRepository

      public com.mojang.authlib.GameProfileRepository profileRepository()
      Returns the value of the profileRepository record component.
      Returns:
      the value of the profileRepository record component
    • userCache

      public UserCache userCache()
      Returns the value of the userCache record component.
      Returns:
      the value of the userCache record component