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

    Fields
    Modifier and Type
    Field
    Description
    private final GameProfileCache
    The field for the profileCache record component.
    private final com.mojang.authlib.GameProfileRepository
    The field for the profileRepository record component.
    private final SignatureValidator
    The field for the serviceSignatureValidator 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, SignatureValidator serviceSignatureValidator, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache)
    Creates an instance of a Services record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Services
    create(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_214345_, File p_214346_)
     
    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 profileCache record component.
    com.mojang.authlib.GameProfileRepository
    Returns the value of the profileRepository record component.
    Returns the value of the serviceSignatureValidator 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.
    • serviceSignatureValidator

      private final SignatureValidator serviceSignatureValidator
      The field for the serviceSignatureValidator record component.
    • profileRepository

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

      private final GameProfileCache profileCache
      The field for the profileCache 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, SignatureValidator serviceSignatureValidator, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache)
      Creates an instance of a Services record class.
      Parameters:
      sessionService - the value for the sessionService record component
      serviceSignatureValidator - the value for the serviceSignatureValidator record component
      profileRepository - the value for the profileRepository record component
      profileCache - the value for the profileCache record component
  • Method Details

    • create

      public static Services create(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_214345_, File p_214346_)
    • 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
    • serviceSignatureValidator

      public SignatureValidator serviceSignatureValidator()
      Returns the value of the serviceSignatureValidator record component.
      Returns:
      the value of the serviceSignatureValidator 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
    • profileCache

      public GameProfileCache profileCache()
      Returns the value of the profileCache record component.
      Returns:
      the value of the profileCache record component