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/RealmsServerAddress
intermediary net/minecraft/class_11459
official fps
named address
intermediary comp_4365
official a
named resourcePackUrl
intermediary comp_4366
official b
named resourcePackHash
intermediary comp_4367
official c
named regionData
intermediary comp_4368
official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theaddress
record component.private static final Logger
private static final RealmsServerAddress
private final RealmsServerAddress.RegionData
The field for theregionData
record component.The field for theresourcePackHash
record component.The field for theresourcePackUrl
record 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 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 RealmsServerAddress
parse
(CheckedGson gson, String json) 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
@SerializedName("sessionRegionData") @Nullable private final RealmsServerAddress.RegionData regionDataThe field for theregionData
record component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/realms/dto/RealmsServerAddress;LOGGER:Lorg/slf4j/Logger;
intermediary field_60676
Lnet/minecraft/class_11459;field_60676:Lorg/slf4j/Logger;
official e
Lfps;e:Lorg/slf4j/Logger;
-
NULL
- Mappings:
Namespace Name Mixin selector named NULL
Lnet/minecraft/client/realms/dto/RealmsServerAddress;NULL:Lnet/minecraft/client/realms/dto/RealmsServerAddress;
intermediary field_60677
Lnet/minecraft/class_11459;field_60677:Lnet/minecraft/class_11459;
official f
Lfps;f:Lfps;
-
-
Constructor Details
-
RealmsServerAddress
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/client/realms/dto/RealmsServerAddress;parse(Lnet/minecraft/client/realms/CheckedGson;Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsServerAddress;
intermediary method_71782
Lnet/minecraft/class_11459;method_71782(Lnet/minecraft/class_4869;Ljava/lang/String;)Lnet/minecraft/class_11459;
official a
Lfps;a(Lfpj;Ljava/lang/String;)Lfps;
-
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
@SerializedName("sessionRegionData") @Nullable public @Nullable RealmsServerAddress.RegionData regionData()Returns the value of theregionData
record component.- Returns:
- the value of the
regionData
record component
-