Package net.minecraft.client.realms.dto
Record Class RealmsServerAddress.RegionData
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsServerAddress.RegionData
- Record Components:
region
-serviceQuality
-
- All Implemented Interfaces:
RealmsSerializable
- Enclosing class:
RealmsServerAddress
@Environment(CLIENT)
public static record RealmsServerAddress.RegionData(@Nullable RealmsRegion region, @Nullable ServiceQuality serviceQuality)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsServerAddress$RegionData
intermediary net/minecraft/class_11459$class_11460
official fps$a
named region
intermediary comp_4369
official a
named serviceQuality
intermediary comp_4370
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RealmsRegion
The field for theregion
record component.private final @Nullable ServiceQuality
The field for theserviceQuality
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRegionData
(@Nullable RealmsRegion realmsRegion, @Nullable ServiceQuality serviceQuality) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.region()
Returns the value of theregion
record component.Returns the value of theserviceQuality
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
region
The field for theregion
record component. -
serviceQuality
The field for theserviceQuality
record component.
-
-
Constructor Details
-
RegionData
public RegionData(@Nullable @Nullable RealmsRegion realmsRegion, @Nullable @Nullable ServiceQuality serviceQuality)
-
-
Method Details
-
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)
. -
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
serviceQuality
Returns the value of theserviceQuality
record component.- Returns:
- the value of the
serviceQuality
record component
-