Package net.minecraft.client.realms.dto
Record Class RealmsServerAddress
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsServerAddress
- Record Components:
address-resourcePackUrl-resourcePackHash-regionData-
- All Implemented Interfaces:
RealmsSerializable
@Environment(CLIENT)
public record RealmsServerAddress(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, RealmsServerAddress.RegionData regionData)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsServerAddressintermediary net/minecraft/class_11459official fvpnamed addressintermediary comp_4365official anamed resourcePackUrlintermediary comp_4366official bnamed resourcePackHashintermediary comp_4367official cnamed regionDataintermediary comp_4368official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theaddressrecord component.private static final Loggerprivate static final RealmsServerAddressprivate final RealmsServerAddress.RegionDataThe field for theregionDatarecord component.The field for theresourcePackHashrecord component.The field for theresourcePackUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsServerAddress(@Nullable String string, @Nullable String string2, @Nullable String string3, @Nullable RealmsServerAddress.RegionData regionData) -
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 RealmsServerAddressparse(CheckedGson gson, String json) 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
@SerializedName("sessionRegionData") @Nullable private final RealmsServerAddress.RegionData regionDataThe field for theregionDatarecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/RealmsServerAddress;LOGGER:Lorg/slf4j/Logger;intermediary field_60676Lnet/minecraft/class_11459;field_60676:Lorg/slf4j/Logger;official eLfvp;e:Lorg/slf4j/Logger;
-
NULL
- Mappings:
Namespace Name Mixin selector named NULLLnet/minecraft/client/realms/dto/RealmsServerAddress;NULL:Lnet/minecraft/client/realms/dto/RealmsServerAddress;intermediary field_60677Lnet/minecraft/class_11459;field_60677:Lnet/minecraft/class_11459;official fLfvp;f:Lfvp;
-
-
Constructor Details
-
RealmsServerAddress
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/RealmsServerAddress;parse(Lnet/minecraft/client/realms/CheckedGson;Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsServerAddress;intermediary method_71782Lnet/minecraft/class_11459;method_71782(Lnet/minecraft/class_4869;Ljava/lang/String;)Lnet/minecraft/class_11459;official aLfvp;a(Lfvg;Ljava/lang/String;)Lfvp;
-
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
@SerializedName("sessionRegionData") @Nullable public @Nullable RealmsServerAddress.RegionData regionData()Returns the value of theregionDatarecord component.- Returns:
- the value of the
regionDatarecord component
-