Package net.minecraft.client.realms.dto
Record Class PingResult
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.PingResult
- Record Components:
pingResults-worldIds-
- All Implemented Interfaces:
RealmsSerializable
@Environment(CLIENT)
public record PingResult(List<RegionPingResult> pingResults, List<Long> worldIds)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/PingResultintermediary net/minecraft/class_4873official fyknamed pingResultsintermediary comp_5005official anamed worldIdsintermediary comp_5006official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RegionPingResult> The field for thepingResultsrecord component.The field for theworldIdsrecord 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.Returns the value of thepingResultsrecord component.final StringtoString()Returns a string representation of this record class.worldIds()Returns the value of theworldIdsrecord component.
-
Field Details
-
pingResults
The field for thepingResultsrecord component. -
worldIds
The field for theworldIdsrecord component.
-
-
Constructor Details
-
PingResult
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/realms/dto/PingResult;<init>(Ljava/util/List;Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_4873;<init>(Ljava/util/List;Ljava/util/List;)Vofficial <init>Lfyk;<init>(Ljava/util/List;Ljava/util/List;)V
-
-
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). -
pingResults
Returns the value of thepingResultsrecord component.- Returns:
- the value of the
pingResultsrecord component
-
worldIds
Returns the value of theworldIdsrecord component.- Returns:
- the value of the
worldIdsrecord component
-