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(String address, String resourcePackUrl, String resourcePackHash, RealmsServerAddress.RegionData regionData)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsServerAddressintermediary net/minecraft/class_11459official fzunamed 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 TypeFieldDescriptionprivate final StringThe field for theaddressrecord component.private static final Loggerprivate static final RealmsServerAddressprivate final RealmsServerAddress.RegionDataThe field for theregionDatarecord component.private final StringThe field for theresourcePackHashrecord component.private final StringThe field for theresourcePackUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsServerAddress(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, @Nullable RealmsServerAddress.RegionData regionData) Creates an instance of aRealmsServerAddressrecord 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 RealmsServerAddressparse(CheckedGson gson, String json) @Nullable RealmsServerAddress.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
The 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 eLfzu;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 fLfzu;f:Lfzu;
-
-
Constructor Details
-
RealmsServerAddress
public RealmsServerAddress(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, @Nullable RealmsServerAddress.RegionData regionData) Creates an instance of aRealmsServerAddressrecord 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
- 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 aLfzu;a(Lfzk;Ljava/lang/String;)Lfzu;
-
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
-