Record Class RealmsJoinInformation

java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsJoinInformation
All Implemented Interfaces:
ReflectionBasedSerialization

public record RealmsJoinInformation(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, @Nullable RealmsJoinInformation.RegionData regionData) extends Record implements ReflectionBasedSerialization
  • Field Details

    • address

      @Nullable @SerializedName("address") private final String address
      The field for the address record component.
    • resourcePackUrl

      @Nullable @SerializedName("resourcePackUrl") private final String resourcePackUrl
      The field for the resourcePackUrl record component.
    • resourcePackHash

      @Nullable @SerializedName("resourcePackHash") private final String resourcePackHash
      The field for the resourcePackHash record component.
    • regionData

      @Nullable @SerializedName("sessionRegionData") private final RealmsJoinInformation.RegionData regionData
      The field for the regionData record component.
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • EMPTY

      private static final RealmsJoinInformation EMPTY
  • Constructor Details

    • RealmsJoinInformation

      public RealmsJoinInformation(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, @Nullable RealmsJoinInformation.RegionData regionData)
      Creates an instance of a RealmsJoinInformation record class.
      Parameters:
      address - the value for the address record component
      resourcePackUrl - the value for the resourcePackUrl record component
      resourcePackHash - the value for the resourcePackHash record component
      regionData - the value for the regionData record component
  • Method Details

    • parse

      public static RealmsJoinInformation parse(GuardedSerializer pSerializer, String pJson)
    • 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.
    • address

      @Nullable @SerializedName("address") public String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • resourcePackUrl

      @Nullable @SerializedName("resourcePackUrl") public String resourcePackUrl()
      Returns the value of the resourcePackUrl record component.
      Returns:
      the value of the resourcePackUrl record component
    • resourcePackHash

      @Nullable @SerializedName("resourcePackHash") public String resourcePackHash()
      Returns the value of the resourcePackHash record component.
      Returns:
      the value of the resourcePackHash record component
    • regionData

      @Nullable @SerializedName("sessionRegionData") public RealmsJoinInformation.RegionData regionData()
      Returns the value of the regionData record component.
      Returns:
      the value of the regionData record component