Package net.minecraft.client.realms.dto
Record Class RegionData
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RegionData
- Record Components:
region-serviceQuality-
- All Implemented Interfaces:
RealmsSerializable
@Environment(CLIENT)
public record RegionData(RealmsRegion region, ServiceQuality serviceQuality)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RegionDataintermediary net/minecraft/class_11309official fwdnamed regionintermediary comp_4182official anamed serviceQualityintermediary comp_4183official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealmsRegionThe field for theregionrecord component.private final ServiceQualityThe field for theserviceQualityrecord component. -
Constructor Summary
Constructors -
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
-
-
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
-