Package net.minecraft.client.realms.dto
Record Class RealmsServerPlayerList
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsServerPlayerList
- Record Components:
serverIdToPlayers-
@Environment(CLIENT)
public record RealmsServerPlayerList(Map<Long,List<ProfileComponent>> serverIdToPlayers)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsServerPlayerListintermediary net/minecraft/class_4881official fyvnamed serverIdToPlayersintermediary comp_5011official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final Map<Long, List<ProfileComponent>> The field for theserverIdToPlayersrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(long serverId) final inthashCode()Returns a hash code value for this object.static RealmsServerPlayerListprivate static List<ProfileComponent> parsePlayers(JsonArray jsonArray) Returns the value of theserverIdToPlayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
serverIdToPlayers
The field for theserverIdToPlayersrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/RealmsServerPlayerList;LOGGER:Lorg/slf4j/Logger;intermediary field_22628Lnet/minecraft/class_4881;field_22628:Lorg/slf4j/Logger;official bLfyv;b:Lorg/slf4j/Logger;
-
-
Constructor Details
-
RealmsServerPlayerList
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;<init>(Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_4881;<init>(Ljava/util/Map;)Vofficial <init>Lfyv;<init>(Ljava/util/Map;)V
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/RealmsServerPlayerList;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;intermediary method_25074Lnet/minecraft/class_4881;method_25074(Ljava/lang/String;)Lnet/minecraft/class_4881;official aLfyv;a(Ljava/lang/String;)Lfyv;
-
parsePlayers
- Mappings:
Namespace Name Mixin selector named parsePlayersLnet/minecraft/client/realms/dto/RealmsServerPlayerList;parsePlayers(Lcom/google/gson/JsonArray;)Ljava/util/List;intermediary method_25073Lnet/minecraft/class_4881;method_25073(Lcom/google/gson/JsonArray;)Ljava/util/List;official aLfyv;a(Lcom/google/gson/JsonArray;)Ljava/util/List;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/client/realms/dto/RealmsServerPlayerList;get(J)Ljava/util/List;intermediary method_60863Lnet/minecraft/class_4881;method_60863(J)Ljava/util/List;official aLfyv;a(J)Ljava/util/List;
-
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). -
serverIdToPlayers
Returns the value of theserverIdToPlayersrecord component.- Returns:
- the value of the
serverIdToPlayersrecord component
-