Record Class ClientConnectionState

java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientConnectionState
Record Components:
chunkLoadProgress -
localGameProfile -
worldSession -
receivedRegistries -
enabledFeatures -
serverBrand -
serverInfo -
postDisconnectScreen -
serverCookies -
chatState -
customReportDetails -
serverLinks -
seenPlayers -
seenInsecureChatWarning -

@Environment(CLIENT) public record ClientConnectionState(ClientChunkLoadProgress chunkLoadProgress, com.mojang.authlib.GameProfile localGameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable receivedRegistries, FeatureSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerInfo serverInfo, @Nullable Screen postDisconnectScreen, Map<Identifier,byte[]> serverCookies, ChatHud.ChatState chatState, Map<String,String> customReportDetails, ServerLinks serverLinks, Map<UUID,PlayerListEntry> seenPlayers, boolean seenInsecureChatWarning) extends Record
Mappings:
Namespace Name
named net/minecraft/client/network/ClientConnectionState
intermediary net/minecraft/class_8675
official hda
named chunkLoadProgress
intermediary comp_4466
official a
named localGameProfile
intermediary comp_1611
official b
named worldSession
intermediary comp_1612
official c
named receivedRegistries
intermediary comp_1613
official d
named enabledFeatures
intermediary comp_1614
official e
named serverBrand
intermediary comp_1615
official f
named serverInfo
intermediary comp_1616
official g
named postDisconnectScreen
intermediary comp_1617
official h
named serverCookies
intermediary comp_2205
official i
named chatState
intermediary comp_2553
official j
named customReportDetails
intermediary comp_2849
official k
named serverLinks
intermediary comp_2850
official l
named seenPlayers
intermediary comp_4611
official m
named seenInsecureChatWarning
intermediary comp_4612
official n
  • Field Details

  • Constructor Details

    • ClientConnectionState

      public ClientConnectionState(ClientChunkLoadProgress levelLoadTracker, com.mojang.authlib.GameProfile localGameProfile, WorldSession telemetryManager, DynamicRegistryManager.Immutable receivedRegistries, FeatureSet enabledFeatures, @Nullable @Nullable String serverBrand, @Nullable @Nullable ServerInfo serverData, @Nullable @Nullable Screen postDisconnectScreen, Map<Identifier,byte[]> serverCookies, @Nullable ChatHud.ChatState chatState, Map<String,String> customReportDetails, ServerLinks serverLinks, Map<UUID,PlayerListEntry> seenPlayers, boolean seenInsecureChatWarning)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/network/ClientConnectionState;<init>(Lnet/minecraft/client/world/ClientChunkLoadProgress;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/client/session/telemetry/WorldSession;Lnet/minecraft/registry/DynamicRegistryManager$Immutable;Lnet/minecraft/resource/featuretoggle/FeatureSet;Ljava/lang/String;Lnet/minecraft/client/network/ServerInfo;Lnet/minecraft/client/gui/screen/Screen;Ljava/util/Map;Lnet/minecraft/client/gui/hud/ChatHud$ChatState;Ljava/util/Map;Lnet/minecraft/server/ServerLinks;Ljava/util/Map;Z)V
      intermediary <init> Lnet/minecraft/class_8675;<init>(Lnet/minecraft/class_11653;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_7975;Lnet/minecraft/class_5455$class_6890;Lnet/minecraft/class_7699;Ljava/lang/String;Lnet/minecraft/class_642;Lnet/minecraft/class_437;Ljava/util/Map;Lnet/minecraft/class_338$class_9477;Ljava/util/Map;Lnet/minecraft/class_9782;Ljava/util/Map;Z)V
      official <init> Lhda;<init>(Lhdd;Lcom/mojang/authlib/GameProfile;Lilo;Ljx$b;Ldfn;Ljava/lang/String;Lhdj;Lgpn;Ljava/util/Map;Lggr$i;Ljava/util/Map;Lanq;Ljava/util/Map;Z)V
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • chunkLoadProgress

      public ClientChunkLoadProgress chunkLoadProgress()
      Returns the value of the chunkLoadProgress record component.
      Returns:
      the value of the chunkLoadProgress record component
    • localGameProfile

      public com.mojang.authlib.GameProfile localGameProfile()
      Returns the value of the localGameProfile record component.
      Returns:
      the value of the localGameProfile record component
    • worldSession

      public WorldSession worldSession()
      Returns the value of the worldSession record component.
      Returns:
      the value of the worldSession record component
    • receivedRegistries

      public DynamicRegistryManager.Immutable receivedRegistries()
      Returns the value of the receivedRegistries record component.
      Returns:
      the value of the receivedRegistries record component
    • enabledFeatures

      public FeatureSet enabledFeatures()
      Returns the value of the enabledFeatures record component.
      Returns:
      the value of the enabledFeatures record component
    • serverBrand

      @Nullable public @Nullable String serverBrand()
      Returns the value of the serverBrand record component.
      Returns:
      the value of the serverBrand record component
    • serverInfo

      @Nullable public @Nullable ServerInfo serverInfo()
      Returns the value of the serverInfo record component.
      Returns:
      the value of the serverInfo record component
    • postDisconnectScreen

      @Nullable public @Nullable Screen postDisconnectScreen()
      Returns the value of the postDisconnectScreen record component.
      Returns:
      the value of the postDisconnectScreen record component
    • serverCookies

      public Map<Identifier,byte[]> serverCookies()
      Returns the value of the serverCookies record component.
      Returns:
      the value of the serverCookies record component
    • chatState

      @Nullable public ChatHud.ChatState chatState()
      Returns the value of the chatState record component.
      Returns:
      the value of the chatState record component
    • customReportDetails

      public Map<String,String> customReportDetails()
      Returns the value of the customReportDetails record component.
      Returns:
      the value of the customReportDetails record component
    • serverLinks

      public ServerLinks serverLinks()
      Returns the value of the serverLinks record component.
      Returns:
      the value of the serverLinks record component
    • seenPlayers

      public Map<UUID,PlayerListEntry> seenPlayers()
      Returns the value of the seenPlayers record component.
      Returns:
      the value of the seenPlayers record component
    • seenInsecureChatWarning

      public boolean seenInsecureChatWarning()
      Returns the value of the seenInsecureChatWarning record component.
      Returns:
      the value of the seenInsecureChatWarning record component