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-strictErrorHandling-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, boolean strictErrorHandling, Map<String,String> customReportDetails, ServerLinks serverLinks)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/network/ClientConnectionStateintermediary net/minecraft/class_8675official fzjnamed localGameProfileintermediary comp_1611official anamed worldSessionintermediary comp_1612official bnamed receivedRegistriesintermediary comp_1613official cnamed enabledFeaturesintermediary comp_1614official dnamed serverBrandintermediary comp_1615official enamed serverInfointermediary comp_1616official fnamed postDisconnectScreenintermediary comp_1617official gnamed serverCookiesintermediary comp_2205official hnamed chatStateintermediary comp_2553official inamed strictErrorHandlingintermediary comp_2663official jnamed customReportDetailsintermediary comp_2849official knamed serverLinksintermediary comp_2850official l
-
Field Summary
FieldsModifier 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 booleanDeprecated, for removal: This API element is subject to removal in a future version.private final WorldSessionThe field for theworldSessionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientConnectionState(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, boolean bool, Map<String, String> map2, ServerLinks serverLinks) -
Method Summary
Modifier 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.booleanDeprecated, for removal: This API element is subject to removal in a future version.final StringtoString()Returns a string representation of this record class.Returns the value of theworldSessionrecord component.
-
Field Details
-
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. -
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.The field for thestrictErrorHandlingrecord component. -
customReportDetails
The field for thecustomReportDetailsrecord component. -
serverLinks
The field for theserverLinksrecord component.
-
-
Constructor Details
-
ClientConnectionState
public 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, @Deprecated(forRemoval=true) boolean bool, Map<String, String> map2, ServerLinks serverLinks)
-
-
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 '=='. -
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
-
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thestrictErrorHandlingrecord component.- Returns:
- the value of the
strictErrorHandlingrecord 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
-