Package net.minecraft.client.network
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/ClientConnectionStateintermediary net/minecraft/class_8675official gzsnamed chunkLoadProgressintermediary comp_4466official anamed localGameProfileintermediary comp_1611official bnamed worldSessionintermediary comp_1612official cnamed receivedRegistriesintermediary comp_1613official dnamed enabledFeaturesintermediary comp_1614official enamed serverBrandintermediary comp_1615official fnamed serverInfointermediary comp_1616official gnamed postDisconnectScreenintermediary comp_1617official hnamed serverCookiesintermediary comp_2205official inamed chatStateintermediary comp_2553official jnamed customReportDetailsintermediary comp_2849official knamed serverLinksintermediary comp_2850official lnamed seenPlayersintermediary comp_4611official mnamed seenInsecureChatWarningintermediary comp_4612official n
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatHud.ChatStateThe field for thechatStaterecord component.private final ClientChunkLoadProgressThe field for thechunkLoadProgressrecord component.The field for thecustomReportDetailsrecord component.private final FeatureSetThe field for theenabledFeaturesrecord component.private final com.mojang.authlib.GameProfileThe field for thelocalGameProfilerecord component.The field for thepostDisconnectScreenrecord component.private final DynamicRegistryManager.ImmutableThe field for thereceivedRegistriesrecord component.private final booleanThe field for theseenInsecureChatWarningrecord component.private final Map<UUID, PlayerListEntry> The field for theseenPlayersrecord component.The field for theserverBrandrecord component.private final Map<Identifier, byte[]> The field for theserverCookiesrecord component.private final @Nullable ServerInfoThe field for theserverInforecord component.private final ServerLinksThe field for theserverLinksrecord component.private final WorldSessionThe field for theworldSessionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientConnectionState(ClientChunkLoadProgress clientChunkLoadProgress, com.mojang.authlib.GameProfile gameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable immutable, FeatureSet featureSet, @Nullable String string, @Nullable ServerInfo serverInfo, @Nullable Screen screen, Map<Identifier, byte[]> map, ChatHud.ChatState chatState, Map<String, String> map2, ServerLinks serverLinks, Map<UUID, PlayerListEntry> map3, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatStaterecord component.Returns the value of thechunkLoadProgressrecord component.Returns the value of thecustomReportDetailsrecord component.Returns the value of theenabledFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.authlib.GameProfileReturns the value of thelocalGameProfilerecord component.Returns the value of thepostDisconnectScreenrecord component.Returns the value of thereceivedRegistriesrecord component.booleanReturns the value of theseenInsecureChatWarningrecord component.Returns the value of theseenPlayersrecord component.Returns the value of theserverBrandrecord component.Map<Identifier, byte[]> Returns the value of theserverCookiesrecord component.Returns the value of theserverInforecord component.Returns the value of theserverLinksrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworldSessionrecord component.
-
Field Details
-
chunkLoadProgress
The field for thechunkLoadProgressrecord component. -
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfilerecord component. -
worldSession
The field for theworldSessionrecord component. -
receivedRegistries
The field for thereceivedRegistriesrecord component. -
enabledFeatures
The field for theenabledFeaturesrecord component. -
serverBrand
The field for theserverBrandrecord component. -
serverInfo
The field for theserverInforecord component. -
postDisconnectScreen
The field for thepostDisconnectScreenrecord component. -
serverCookies
The field for theserverCookiesrecord component. -
chatState
The field for thechatStaterecord component. -
customReportDetails
The field for thecustomReportDetailsrecord component. -
serverLinks
The field for theserverLinksrecord component. -
seenPlayers
The field for theseenPlayersrecord component. -
seenInsecureChatWarning
private final boolean seenInsecureChatWarningThe field for theseenInsecureChatWarningrecord component.
-
-
Constructor Details
-
ClientConnectionState
public ClientConnectionState(ClientChunkLoadProgress clientChunkLoadProgress, com.mojang.authlib.GameProfile gameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable immutable, FeatureSet featureSet, @Nullable @Nullable String string, @Nullable @Nullable ServerInfo serverInfo, @Nullable @Nullable Screen screen, Map<Identifier, byte[]> map, @Nullable ChatHud.ChatState chatState, Map<String, String> map2, ServerLinks serverLinks, Map<UUID, PlayerListEntry> map3, boolean bool)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
chunkLoadProgress
Returns the value of thechunkLoadProgressrecord component.- Returns:
- the value of the
chunkLoadProgressrecord component
-
localGameProfile
public com.mojang.authlib.GameProfile localGameProfile()Returns the value of thelocalGameProfilerecord component.- Returns:
- the value of the
localGameProfilerecord component
-
worldSession
Returns the value of theworldSessionrecord component.- Returns:
- the value of the
worldSessionrecord component
-
receivedRegistries
Returns the value of thereceivedRegistriesrecord component.- Returns:
- the value of the
receivedRegistriesrecord component
-
enabledFeatures
Returns the value of theenabledFeaturesrecord component.- Returns:
- the value of the
enabledFeaturesrecord component
-
serverBrand
Returns the value of theserverBrandrecord component.- Returns:
- the value of the
serverBrandrecord component
-
serverInfo
Returns the value of theserverInforecord component.- Returns:
- the value of the
serverInforecord component
-
postDisconnectScreen
Returns the value of thepostDisconnectScreenrecord component.- Returns:
- the value of the
postDisconnectScreenrecord component
-
serverCookies
Returns the value of theserverCookiesrecord component.- Returns:
- the value of the
serverCookiesrecord component
-
chatState
Returns the value of thechatStaterecord component.- Returns:
- the value of the
chatStaterecord component
-
customReportDetails
Returns the value of thecustomReportDetailsrecord component.- Returns:
- the value of the
customReportDetailsrecord component
-
serverLinks
Returns the value of theserverLinksrecord component.- Returns:
- the value of the
serverLinksrecord component
-
seenPlayers
Returns the value of theseenPlayersrecord component.- Returns:
- the value of the
seenPlayersrecord component
-
seenInsecureChatWarning
public boolean seenInsecureChatWarning()Returns the value of theseenInsecureChatWarningrecord component.- Returns:
- the value of the
seenInsecureChatWarningrecord component
-