Package net.minecraft.client.network
Record Class ClientConnectionState
java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientConnectionState
- Record Components:
- localGameProfile-
- worldSession-
- receivedRegistries-
- enabledFeatures-
- serverBrand-
- serverInfo-
- postDisconnectScreen-
- serverCookies-
- chatState-
- customReportDetails-
- serverLinks-
@Environment(CLIENT)
public record ClientConnectionState(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)
extends Record  
- Mappings:
- Namespace - Name - named - net/minecraft/client/network/ClientConnectionState- intermediary - net/minecraft/class_8675- official - ggf- named - localGameProfile- intermediary - comp_1611- official - a- named - worldSession- intermediary - comp_1612- official - b- named - receivedRegistries- intermediary - comp_1613- official - c- named - enabledFeatures- intermediary - comp_1614- official - d- named - serverBrand- intermediary - comp_1615- official - e- named - serverInfo- intermediary - comp_1616- official - f- named - postDisconnectScreen- intermediary - comp_1617- official - g- named - serverCookies- intermediary - comp_2205- official - h- named - chatState- intermediary - comp_2553- official - i- named - customReportDetails- intermediary - comp_2849- official - j- named - serverLinks- intermediary - comp_2850- official - k
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ChatHud.ChatStateThe field for thechatStaterecord 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.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 SummaryConstructorsConstructorDescriptionClientConnectionState(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) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thechatStaterecord 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.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- 
localGameProfileprivate final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfilerecord component.
- 
worldSessionThe field for theworldSessionrecord component.
- 
receivedRegistriesThe field for thereceivedRegistriesrecord component.
- 
enabledFeaturesThe field for theenabledFeaturesrecord component.
- 
serverBrandThe field for theserverBrandrecord component.
- 
serverInfoThe field for theserverInforecord component.
- 
postDisconnectScreenThe field for thepostDisconnectScreenrecord component.
- 
serverCookiesThe field for theserverCookiesrecord component.
- 
chatStateThe field for thechatStaterecord component.
- 
customReportDetailsThe field for thecustomReportDetailsrecord component.
- 
serverLinksThe field for theserverLinksrecord component.
 
- 
- 
Constructor Details- 
ClientConnectionStatepublic ClientConnectionState(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) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
localGameProfilepublic com.mojang.authlib.GameProfile localGameProfile()Returns the value of thelocalGameProfilerecord component.- Returns:
- the value of the localGameProfilerecord component
 
- 
worldSessionReturns the value of theworldSessionrecord component.- Returns:
- the value of the worldSessionrecord component
 
- 
receivedRegistriesReturns the value of thereceivedRegistriesrecord component.- Returns:
- the value of the receivedRegistriesrecord component
 
- 
enabledFeaturesReturns the value of theenabledFeaturesrecord component.- Returns:
- the value of the enabledFeaturesrecord component
 
- 
serverBrandReturns the value of theserverBrandrecord component.- Returns:
- the value of the serverBrandrecord component
 
- 
serverInfoReturns the value of theserverInforecord component.- Returns:
- the value of the serverInforecord component
 
- 
postDisconnectScreenReturns the value of thepostDisconnectScreenrecord component.- Returns:
- the value of the postDisconnectScreenrecord component
 
- 
serverCookiesReturns the value of theserverCookiesrecord component.- Returns:
- the value of the serverCookiesrecord component
 
- 
chatStateReturns the value of thechatStaterecord component.- Returns:
- the value of the chatStaterecord component
 
- 
customReportDetailsReturns the value of thecustomReportDetailsrecord component.- Returns:
- the value of the customReportDetailsrecord component
 
- 
serverLinksReturns the value of theserverLinksrecord component.- Returns:
- the value of the serverLinksrecord component
 
 
-