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, 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 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, GameProfileCache profileCache)
    Creates an instance of a Services record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.
    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.
    • 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, com.mojang.authlib.yggdrasil.ServicesKeySet servicesKeySet, com.mojang.authlib.GameProfileRepository profileRepository, GameProfileCache profileCache)
      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
      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_)
    • profileKeySignatureValidator

      @Nullable public 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
    • profileCache

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