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 String
The field for theaddress
record component.private static final RealmsJoinInformation
private static final org.slf4j.Logger
private final RealmsJoinInformation.RegionData
The field for theregionData
record component.private final String
The field for theresourcePackHash
record component.private final String
The field for theresourcePackUrl
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsJoinInformation
(String address, String resourcePackUrl, String resourcePackHash, RealmsJoinInformation.RegionData regionData) Creates an instance of aRealmsJoinInformation
record class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Returns the value of theaddress
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static RealmsJoinInformation
parse
(GuardedSerializer pSerializer, String pJson) Returns the value of theregionData
record component.Returns the value of theresourcePackHash
record component.Returns the value of theresourcePackUrl
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
address
The field for theaddress
record component. -
resourcePackUrl
The field for theresourcePackUrl
record component. -
resourcePackHash
The field for theresourcePackHash
record component. -
regionData
@Nullable @SerializedName("sessionRegionData") private final RealmsJoinInformation.RegionData regionDataThe field for theregionData
record 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 aRealmsJoinInformation
record class.- Parameters:
address
- the value for theaddress
record componentresourcePackUrl
- the value for theresourcePackUrl
record componentresourcePackHash
- the value for theresourcePackHash
record componentregionData
- the value for theregionData
record 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 theaddress
record component.- Returns:
- the value of the
address
record component
-
resourcePackUrl
Returns the value of theresourcePackUrl
record component.- Returns:
- the value of the
resourcePackUrl
record component
-
resourcePackHash
Returns the value of theresourcePackHash
record component.- Returns:
- the value of the
resourcePackHash
record component
-
regionData
Returns the value of theregionData
record component.- Returns:
- the value of the
regionData
record component
-