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 gfo
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 Summary
Modifier and TypeFieldDescriptionprivate final ChatHud.ChatState
The field for thechatState
record component.The field for thecustomReportDetails
record component.private final FeatureSet
The field for theenabledFeatures
record component.private final com.mojang.authlib.GameProfile
The field for thelocalGameProfile
record component.The field for thepostDisconnectScreen
record component.private final DynamicRegistryManager.Immutable
The field for thereceivedRegistries
record component.The field for theserverBrand
record component.private final Map
<Identifier, byte[]> The field for theserverCookies
record component.private final @Nullable ServerInfo
The field for theserverInfo
record component.private final ServerLinks
The field for theserverLinks
record component.private final WorldSession
The field for theworldSession
record component. -
Constructor Summary
ConstructorDescriptionClientConnectionState
(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 Summary
Modifier and TypeMethodDescriptionReturns the value of thechatState
record component.Returns the value of thecustomReportDetails
record component.Returns the value of theenabledFeatures
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.mojang.authlib.GameProfile
Returns the value of thelocalGameProfile
record component.Returns the value of thepostDisconnectScreen
record component.Returns the value of thereceivedRegistries
record component.Returns the value of theserverBrand
record component.Map
<Identifier, byte[]> Returns the value of theserverCookies
record component.Returns the value of theserverInfo
record component.Returns the value of theserverLinks
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theworldSession
record component.
-
Field Details
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfile
record component. -
worldSession
The field for theworldSession
record component. -
receivedRegistries
The field for thereceivedRegistries
record component. -
enabledFeatures
The field for theenabledFeatures
record component. -
serverBrand
The field for theserverBrand
record component. -
serverInfo
The field for theserverInfo
record component. -
postDisconnectScreen
The field for thepostDisconnectScreen
record component. -
serverCookies
The field for theserverCookies
record component. -
chatState
The field for thechatState
record component. -
customReportDetails
The field for thecustomReportDetails
record component. -
serverLinks
The field for theserverLinks
record 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, 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
localGameProfile
public com.mojang.authlib.GameProfile localGameProfile()Returns the value of thelocalGameProfile
record component.- Returns:
- the value of the
localGameProfile
record component
-
worldSession
Returns the value of theworldSession
record component.- Returns:
- the value of the
worldSession
record component
-
receivedRegistries
Returns the value of thereceivedRegistries
record component.- Returns:
- the value of the
receivedRegistries
record component
-
enabledFeatures
Returns the value of theenabledFeatures
record component.- Returns:
- the value of the
enabledFeatures
record component
-
serverBrand
Returns the value of theserverBrand
record component.- Returns:
- the value of the
serverBrand
record component
-
serverInfo
Returns the value of theserverInfo
record component.- Returns:
- the value of the
serverInfo
record component
-
postDisconnectScreen
Returns the value of thepostDisconnectScreen
record component.- Returns:
- the value of the
postDisconnectScreen
record component
-
serverCookies
Returns the value of theserverCookies
record component.- Returns:
- the value of the
serverCookies
record component
-
chatState
Returns the value of thechatState
record component.- Returns:
- the value of the
chatState
record component
-
customReportDetails
Returns the value of thecustomReportDetails
record component.- Returns:
- the value of the
customReportDetails
record component
-
serverLinks
Returns the value of theserverLinks
record component.- Returns:
- the value of the
serverLinks
record component
-