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 @Nullable StringThe field for theaddressrecord component.private static final RealmsJoinInformationprivate static final org.slf4j.Loggerprivate final @Nullable RealmsJoinInformation.RegionDataThe field for theregionDatarecord component.private final @Nullable StringThe field for theresourcePackHashrecord component.private final @Nullable StringThe field for theresourcePackUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsJoinInformation(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, @Nullable RealmsJoinInformation.RegionData regionData) Creates an instance of aRealmsJoinInformationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringaddress()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 gson, String json) @Nullable RealmsJoinInformation.RegionDataReturns the value of theregionDatarecord component.@Nullable StringReturns the value of theresourcePackHashrecord component.@Nullable StringReturns 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
@SerializedName("sessionRegionData") private final @Nullable 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
-
hashCode
-
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
-