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/RealmsServerPlayerList
intermediary net/minecraft/class_4881
official fyv
named serverIdToPlayers
intermediary comp_5011
official a
  • Field Details

    • serverIdToPlayers

      private final Map<Long,List<ProfileComponent>> serverIdToPlayers
      The field for the serverIdToPlayers record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;LOGGER:Lorg/slf4j/Logger;
      intermediary field_22628 Lnet/minecraft/class_4881;field_22628:Lorg/slf4j/Logger;
      official b Lfyv;b:Lorg/slf4j/Logger;
  • Constructor Details

    • RealmsServerPlayerList

      public RealmsServerPlayerList(Map<Long,List<ProfileComponent>> servers)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_4881;<init>(Ljava/util/Map;)V
      official <init> Lfyv;<init>(Ljava/util/Map;)V
  • Method Details

    • parse

      public static RealmsServerPlayerList parse(String json)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;
      intermediary method_25074 Lnet/minecraft/class_4881;method_25074(Ljava/lang/String;)Lnet/minecraft/class_4881;
      official a Lfyv;a(Ljava/lang/String;)Lfyv;
    • parsePlayers

      private static List<ProfileComponent> parsePlayers(JsonArray jsonArray)
      Mappings:
      Namespace Name Mixin selector
      named parsePlayers Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;parsePlayers(Lcom/google/gson/JsonArray;)Ljava/util/List;
      intermediary method_25073 Lnet/minecraft/class_4881;method_25073(Lcom/google/gson/JsonArray;)Ljava/util/List;
      official a Lfyv;a(Lcom/google/gson/JsonArray;)Ljava/util/List;
    • get

      public List<ProfileComponent> get(long serverId)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/client/realms/dto/RealmsServerPlayerList;get(J)Ljava/util/List;
      intermediary method_60863 Lnet/minecraft/class_4881;method_60863(J)Ljava/util/List;
      official a Lfyv;a(J)Ljava/util/List;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • serverIdToPlayers

      public Map<Long,List<ProfileComponent>> serverIdToPlayers()
      Returns the value of the serverIdToPlayers record component.
      Returns:
      the value of the serverIdToPlayers record component