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$RegionDataintermediary net/minecraft/class_11459$class_11460official fvp$anamed regionintermediary comp_4369official anamed serviceQualityintermediary comp_4370official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable RealmsRegionThe field for theregionrecord component.private final @Nullable ServiceQualityThe field for theserviceQualityrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRegionData(@Nullable RealmsRegion realmsRegion, @Nullable ServiceQuality serviceQuality) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.region()Returns the value of theregionrecord component.Returns the value of theserviceQualityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
region
The field for theregionrecord component. -
serviceQuality
The field for theserviceQualityrecord 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 theregionrecord component.- Returns:
- the value of the
regionrecord component
-
serviceQuality
Returns the value of theserviceQualityrecord component.- Returns:
- the value of the
serviceQualityrecord component
-