Package com.mojang.realmsclient.dto
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theaddressrecord component.private static final RealmsJoinInformationprivate static final org.slf4j.Loggerprivate final RealmsJoinInformation.RegionDataThe field for theregionDatarecord component.private final StringThe field for theresourcePackHashrecord component.private final StringThe field for theresourcePackUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsJoinInformation(String address, String resourcePackUrl, String resourcePackHash, RealmsJoinInformation.RegionData regionData) Creates an instance of aRealmsJoinInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static RealmsJoinInformationparse(GuardedSerializer pSerializer, String pJson) Returns the value of theregionDatarecord component.Returns the value of theresourcePackHashrecord component.Returns the value of theresourcePackUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
address
The field for theaddressrecord component. -
resourcePackUrl
The field for theresourcePackUrlrecord component. -
resourcePackHash
The field for theresourcePackHashrecord component. -
regionData
@Nullable @SerializedName("sessionRegionData") private final RealmsJoinInformation.RegionData regionDataThe field for theregionDatarecord component. -
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY
-
-
Constructor Details
-
RealmsJoinInformation
public RealmsJoinInformation(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, @Nullable RealmsJoinInformation.RegionData regionData) Creates an instance of aRealmsJoinInformationrecord class.- Parameters:
address- the value for theaddressrecord componentresourcePackUrl- the value for theresourcePackUrlrecord componentresourcePackHash- the value for theresourcePackHashrecord componentregionData- the value for theregionDatarecord component
-
-
Method Details
-
parse
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
resourcePackUrl
Returns the value of theresourcePackUrlrecord component.- Returns:
- the value of the
resourcePackUrlrecord component
-
resourcePackHash
Returns the value of theresourcePackHashrecord component.- Returns:
- the value of the
resourcePackHashrecord component
-
regionData
Returns the value of theregionDatarecord component.- Returns:
- the value of the
regionDatarecord component
-