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, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final UserNameToIdResolver
    The field for the nameToIdCache record component.
    private final com.mojang.authlib.GameProfileRepository
    The field for the profileRepository record component.
    private final ProfileResolver
    The field for the profileResolver record component.
    private final com.mojang.authlib.yggdrasil.ServicesKeySet
    The field for the servicesKeySet record component.
    private final com.mojang.authlib.minecraft.MinecraftSessionService
    The field for the sessionService record component.
    private static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Services(com.mojang.authlib.minecraft.MinecraftSessionService sessionService, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver)
    Creates an instance of a Services record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static Services
    create(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService pAuthenticationService, File pProfileRepository)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the nameToIdCache record component.
     
    com.mojang.authlib.GameProfileRepository
    Returns the value of the profileRepository record component.
    Returns the value of the profileResolver record component.
    com.mojang.authlib.yggdrasil.ServicesKeySet
    Returns the value of the servicesKeySet record component.
    com.mojang.authlib.minecraft.MinecraftSessionService
    Returns the value of the sessionService record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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.
    • nameToIdCache

      private final UserNameToIdResolver nameToIdCache
      The field for the nameToIdCache record component.
    • profileResolver

      private final ProfileResolver profileResolver
      The field for the profileResolver record component.
    • USERID_CACHE_FILE

      private static final String 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, UserNameToIdResolver nameToIdCache, ProfileResolver profileResolver)
      Creates an instance of a Services record class.
      Parameters:
      sessionService - the value for the sessionService record component
      servicesKeySet - the value for the servicesKeySet record component
      profileRepository - the value for the profileRepository record component
      nameToIdCache - the value for the nameToIdCache record component
      profileResolver - the value for the profileResolver record component
  • Method Details

    • create

      public static Services create(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService pAuthenticationService, File pProfileRepository)
    • profileKeySignatureValidator

      public @Nullable SignatureValidator profileKeySignatureValidator()
    • canValidateProfileKeys

      public boolean canValidateProfileKeys()
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o 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
    • nameToIdCache

      public UserNameToIdResolver nameToIdCache()
      Returns the value of the nameToIdCache record component.
      Returns:
      the value of the nameToIdCache record component
    • profileResolver

      public ProfileResolver profileResolver()
      Returns the value of the profileResolver record component.
      Returns:
      the value of the profileResolver record component